getPush static method

void getPush(
  1. dynamic onSuccess(
    1. Push push
    )?,
  2. dynamic onError(
    1. ErrorModel error
    )?
)

Action to get push in Android

Implementation

static void getPush(Function(Push push)? onSuccess,
    Function(ErrorModel error)? onError) async {
  _indigitall.invokeMapMethod(_ACTION_GET_PUSH_FROM_CACHE);
  onGetPushOnSuccess = onSuccess;
  _indigitall.setMethodCallHandler(_fromNative);
}