onToken property

dynamic Function(String)? get onToken

Returns the callback called when a token is retrieved from APNS or FCM

Implementation

static Function(String)? get onToken => MPush.onToken;
set onToken (dynamic onToken(String)?)

Sets called when a token is retrieved from APNS or FCM

Implementation

static set onToken(Function(String)? onToken) {
  MPush.onToken = onToken;
}