setup static method

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

Implementation

return super.readValueOfType(type,buffer);}}}abstract class MesiboPresenceListenerFlutter{static const MessageCodec<Object?> codec= _MesiboPresenceListenerFlutterCodec();void Mesibo_onPresence(MesiboPresence presence);void Mesibo_onPresenceRequest(MesiboPresence presence);static void setup(MesiboPresenceListenerFlutter? api,{BinaryMessenger? binaryMessenger}
      ){{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboPresenceListenerFlutter.Mesibo_onPresence',codec,binaryMessenger:
        binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboPresenceListenerFlutter.Mesibo_onPresence was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboPresence? arg_presence=(args[0] as MesiboPresence?);assert(arg_presence!= null,'Argument for com.mesibo.mesibo_flutter.MesiboPresenceListenerFlutter.Mesibo_onPresence was null, expected non-null MesiboPresenceFlutter.');try{api.Mesibo_onPresence(arg_presence!);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.MesiboPresenceListenerFlutter.Mesibo_onPresenceRequest',codec,binaryMessenger:
    binaryMessenger);if(api== null){channel.setMessageHandler(null);}
       else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboPresenceListenerFlutter.Mesibo_onPresenceRequest was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboPresence? arg_presence=(args[0] as MesiboPresence?);assert(arg_presence!= null,'Argument for com.mesibo.mesibo_flutter.MesiboPresenceListenerFlutter.Mesibo_onPresenceRequest was null, expected non-null MesiboPresenceFlutter.');try{api.Mesibo_onPresenceRequest(arg_presence!);return wrapResponse(empty:
 true);} on PlatformException catch(e){return wrapResponse(error: e);} catch(e){return wrapResponse(error:
      PlatformException(code:'error',message: e.toString()));}});}}}