acceptFriendApplication method Null safety

Future<V2TimValueCallback<V2TimFriendOperationResult>> acceptFriendApplication(
  1. {required FriendResponseTypeEnum responseType,
  2. required FriendApplicationTypeEnum type,
  3. required String userID}
)

Accept a friend request

Parameter

application	Friend application information, getFriendApplicationList will return after success
responseType	Establish a one-way/two-way friend relationship

FriendApplicationType.V2TIM_FRIEND_ACCEPT_AGREE: Agree to add one-way friend
FriendApplicationType.V2TIM_FRIEND_ACCEPT_AGREE_AND_ADD: Agree and add as two-way friend

Implementation

Future<V2TimValueCallback<V2TimFriendOperationResult>>
    acceptFriendApplication({
  required FriendResponseTypeEnum responseType,
  required FriendApplicationTypeEnum type,
  required String userID,
}) async {
  return ImFlutterPlatform.instance.acceptFriendApplication(
      responseType:
          EnumUtils.convertFriendResponseTypeEnum(responseType) as int,
      type: EnumUtils.convertFriendApplicationTypeEnum(type) as int,
      userID: userID);
}