init method
Initializes the native Catapush SDK.
Wait for the Future to complete before invoking any other method of this
plugin.
Implementation
Future<bool> init({iOSSettings? ios, AndroidSettings? android}) {
return _channel.invokeMethod<Map<Object?, Object?>>('Catapush#init', {
'ios': ios?.mapRepresentation(),
'android': android?.mapRepresentation(),
}).then((response) {
return response!['result']! as bool;
});
}