setup static method

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

Implementation

}}abstract class MesiboLocationListenerFlutter{static const MessageCodec<Object?> codec= _MesiboLocationListenerFlutterCodec();void Mesibo_onDeviceLocation(MesiboLocation location);void Mesibo_onLocationReceived(MesiboProfile profile);void Mesibo_onLocationRequest(MesiboProfile profile,int duration);void Mesibo_onLocationShared(MesiboProfile profile,int duration);void Mesibo_onLocationError(MesiboProfile profile,int error);static void setup(MesiboLocationListenerFlutter? api,{BinaryMessenger? binaryMessenger}
         ){{final BasicMessageChannel<Object?> channel= BasicMessageChannel<Object?>('com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onDeviceLocation',codec,binaryMessenger:
   binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onDeviceLocation was null.');final List<Object?> args=(message as List<Object?>?)!;final MesiboLocation? arg_location=(args[0] as MesiboLocation?);assert(arg_location!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onDeviceLocation was null, expected non-null MesiboLocationFlutter.');try{api.Mesibo_onDeviceLocation(arg_location!);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.MesiboLocationListenerFlutter.Mesibo_onLocationReceived',codec,binaryMessenger:
          binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onLocationReceived 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.MesiboLocationListenerFlutter.Mesibo_onLocationReceived was null, expected non-null MesiboProfileFlutter.');try{api.Mesibo_onLocationReceived(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.MesiboLocationListenerFlutter.Mesibo_onLocationRequest',codec,binaryMessenger:
     binaryMessenger);if(api== null){channel.setMessageHandler(null);}
 else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onLocationRequest 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.MesiboLocationListenerFlutter.Mesibo_onLocationRequest was null, expected non-null MesiboProfileFlutter.');final int? arg_duration=(args[1] as int?);assert(arg_duration!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onLocationRequest was null, expected non-null int.');try{api.Mesibo_onLocationRequest(arg_profile!,arg_duration!);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.MesiboLocationListenerFlutter.Mesibo_onLocationShared',codec,binaryMessenger:
     binaryMessenger);if(api== null){channel.setMessageHandler(null);} else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onLocationShared 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.MesiboLocationListenerFlutter.Mesibo_onLocationShared was null, expected non-null MesiboProfileFlutter.');final int? arg_duration=(args[1] as int?);assert(arg_duration!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onLocationShared was null, expected non-null int.');try{api.Mesibo_onLocationShared(arg_profile!,arg_duration!);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.MesiboLocationListenerFlutter.Mesibo_onLocationError',codec,binaryMessenger:
          binaryMessenger);if(api== null){channel.setMessageHandler(null);}
      else{channel.setMessageHandler((Object? message) async{assert(message!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onLocationError 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.MesiboLocationListenerFlutter.Mesibo_onLocationError was null, expected non-null MesiboProfileFlutter.');final int? arg_error=(args[1] as int?);assert(arg_error!= null,'Argument for com.mesibo.mesibo_flutter.MesiboLocationListenerFlutter.Mesibo_onLocationError was null, expected non-null int.');try{api.Mesibo_onLocationError(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()));}});}}}