addFriend method Null safety

Future<V2TimValueCallback<V2TimFriendOperationResult>> addFriend(
  1. {required String userID,
  2. String? remark,
  3. String? friendGroup,
  4. String? addWording,
  5. String? addSource,
  6. required FriendTypeEnum addType}
)

Add a friend

Implementation

Future<V2TimValueCallback<V2TimFriendOperationResult>> addFriend({
  required String userID,
  String? remark,
  String? friendGroup,
  String? addWording,
  String? addSource,
  required FriendTypeEnum addType,
}) async {
  return ImFlutterPlatform.instance.addFriend(
      userID: userID,
      remark: remark,
      friendGroup: friendGroup,
      addWording: addWording,
      addSource: addSource,
      addType: EnumUtils.convertFriendTypeEnum(addType) as int);
}