setup static method

void setup(
  1. MesiboGroupListenerFlutter? api, {
  2. BinaryMessenger? binaryMessenger,
})

Implementation

}abstract class MesiboGroupListenerFlutter{static const MessageCodec<Object?> codec= _MesiboGroupListenerFlutterCodec();void Mesibo_onGroupCreated(MesiboProfile profile);void Mesibo_onGroupJoined(MesiboProfile profile);void Mesibo_onGroupLeft(MesiboProfile profile);void Mesibo_onGroupMembers(MesiboProfile profile,List<MesiboGroupMember?> members);void Mesibo_onGroupMembersJoined(MesiboProfile profile,List<MesiboGroupMember?> members);void Mesibo_onGroupMembersRemoved(MesiboProfile profile,List<MesiboGroupMember?> members);void Mesibo_onGroupSettings(MesiboProfile profile,MesiboGroupSettings? groupSettings,MesiboMemberPermissions? memberPermissions,List<MesiboGroupPin?> groupPins);void Mesibo_onGroupError(MesiboProfile profile,int error);static void setup(MesiboGroupListenerFlutter? api,{BinaryMessenger? binaryMessenger}
        ){{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupCreated',codec,binaryMessenger:
binaryMessenger);if(api== null){channel.setMessageHandler(null);}
  else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupCreated was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupCreated was null, expected non-null MesiboProfileFlutter.');try{api.Mesibo_onGroupCreated(arg_profile!);return wrapResponse(empty:
  true);}
   on PlatformException catch(e){return wrapResponse(error:
    e);} catch(e){return wrapResponse(error:
      PlatformException(code:'error',message: e.toString()));}});}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupJoined',codec,binaryMessenger:
     binaryMessenger);if(api== null){channel.setMessageHandler(null);}
       else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupJoined was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupJoined was null, expected non-null MesiboProfileFlutter.');try{api.Mesibo_onGroupJoined(arg_profile!);return wrapResponse(empty:
     true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error: PlatformException(code:
     'error',message: e.toString()));}});}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupLeft',codec,binaryMessenger:
        binaryMessenger);if(api== null){channel.setMessageHandler(null);}
  else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupLeft was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupLeft was null, expected non-null MesiboProfileFlutter.');try{api.Mesibo_onGroupLeft(arg_profile!);return wrapResponse(empty:
   true);} on PlatformException catch(e){return wrapResponse(error:
    e);} catch(e){return wrapResponse(error:
    PlatformException(code:'error',message: e.toString()));}});}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembers',codec,binaryMessenger:
     binaryMessenger);if(api== null){channel.setMessageHandler(null);}
 else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembers was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembers was null, expected non-null MesiboProfileFlutter.');final List<MesiboGroupMember?>? arg_members=(args[1] as List<Object?>?)?.cast<MesiboGroupMember?>();assert(arg_members!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembers was null, expected non-null List<MesiboGroupMember?>.');try{api.Mesibo_onGroupMembers(arg_profile!,arg_members!);return wrapResponse(empty:
   true);} on PlatformException catch(e){return wrapResponse(error:
  e);} catch(e){return wrapResponse(error: PlatformException(code:'error',message: e.toString()));}});}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembersJoined',codec,binaryMessenger:
        binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembersJoined was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembersJoined was null, expected non-null MesiboProfileFlutter.');final List<MesiboGroupMember?>? arg_members=(args[1] as List<Object?>?)?.cast<MesiboGroupMember?>();assert(arg_members!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembersJoined was null, expected non-null List<MesiboGroupMember?>.');try{api.Mesibo_onGroupMembersJoined(arg_profile!,arg_members!);return wrapResponse(empty:
      true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error:
   PlatformException(code:'error',message: e.toString()));}
     });}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembersRemoved',codec,binaryMessenger:
     binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembersRemoved was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembersRemoved was null, expected non-null MesiboProfileFlutter.');final List<MesiboGroupMember?>? arg_members=(args[1] as List<Object?>?)?.cast<MesiboGroupMember?>();assert(arg_members!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupMembersRemoved was null, expected non-null List<MesiboGroupMember?>.');try{api.Mesibo_onGroupMembersRemoved(arg_profile!,arg_members!);return wrapResponse(empty:
     true);} on PlatformException catch(e){return wrapResponse(error:
    e);} catch(e){return wrapResponse(error: PlatformException(code:
      'error',message:
    e.toString()));}});}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupSettings',codec,binaryMessenger:
       binaryMessenger);if(api== null){channel.setMessageHandler(null);}
 else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupSettings was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupSettings was null, expected non-null MesiboProfileFlutter.');final MesiboGroupSettings? arg_groupSettings=(args[1] as MesiboGroupSettings?);final MesiboMemberPermissions? arg_memberPermissions=(args[2] as MesiboMemberPermissions?);final List<MesiboGroupPin?>? arg_groupPins=(args[3] as List<Object?>?)?.cast<MesiboGroupPin?>();assert(arg_groupPins!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupSettings was null, expected non-null List<MesiboGroupPin?>.');try{api.Mesibo_onGroupSettings(arg_profile!,arg_groupSettings,arg_memberPermissions,arg_groupPins!);return wrapResponse(empty:
  true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error: PlatformException(code:
 'error',message:
e.toString()));}});}}{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupError',codec,binaryMessenger:
  binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupError was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboProfile? arg_profile=(args[0] as MesiboProfile?);assert(arg_profile!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupError was null, expected non-null MesiboProfileFlutter.');final int? arg_error=(args[1] as int?);assert(arg_error!= null,'Argument for com.mesibo.mesibo_flutter.MesiboGroupListenerFlutter.Mesibo_onGroupError was null, expected non-null int.');try{api.Mesibo_onGroupError(arg_profile!,arg_error!);return wrapResponse(empty:
         true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error:
         PlatformException(code:
   'error',message: e.toString()));}
  });}}}