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