setInitializationCompleteListener static method

Future<void> setInitializationCompleteListener(
  1. Function callback
)

Call it's callback when initialization is completed

Implementation

static Future<void> setInitializationCompleteListener(
    Function callback) async {
  if(!Platform.isAndroid) return;
  dynamic result =
      await _channel.invokeMethod("Pushe.setInitializationCompleteListener");
  if (result) callback.call();
  return;
}