setup static method
Implementation
abstract class MesiboMessageListenerFlutter{static const MessageCodec<Object?> codec= _MesiboMessageListenerFlutterCodec();void Mesibo_onMessage(MesiboMessage message);void Mesibo_onMessageUpdate(MesiboMessage message);void Mesibo_onMessageStatus(MesiboMessage message);static void setup(MesiboMessageListenerFlutter? api,{BinaryMessenger? binaryMessenger}
){{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboMessageListenerFlutter.Mesibo_onMessage',codec,binaryMessenger:
binaryMessenger);if(api== null){channel.setMessageHandler(null);}
else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboMessageListenerFlutter.Mesibo_onMessage was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboMessage? arg_message=(args[0] as MesiboMessage?);assert(arg_message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboMessageListenerFlutter.Mesibo_onMessage was null, expected non-null MesiboMessageFlutter.');try{api.Mesibo_onMessage(arg_message!);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.MesiboMessageListenerFlutter.Mesibo_onMessageUpdate',codec,binaryMessenger:
binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboMessageListenerFlutter.Mesibo_onMessageUpdate was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboMessage? arg_message=(args[0] as MesiboMessage?);assert(arg_message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboMessageListenerFlutter.Mesibo_onMessageUpdate was null, expected non-null MesiboMessageFlutter.');try{api.Mesibo_onMessageUpdate(arg_message!);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.MesiboMessageListenerFlutter.Mesibo_onMessageStatus',codec,binaryMessenger:
binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboMessageListenerFlutter.Mesibo_onMessageStatus was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboMessage? arg_message=(args[0] as MesiboMessage?);assert(arg_message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboMessageListenerFlutter.Mesibo_onMessageStatus was null, expected non-null MesiboMessageFlutter.');try{api.Mesibo_onMessageStatus(arg_message!);return wrapResponse(empty:
true);}
on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error:
PlatformException(code:'error',message: e.toString()));}});}}}