instance property
FirebaseMessagingPlatform
instance
The current default FirebaseMessagingPlatform instance.
It will always default to MethodChannelFirebaseMessaging
if no other implementation was provided.
Implementation
static FirebaseMessagingPlatform get instance {
if (_instance == null) {
// This is only called for method channels since Web is setting the instance before we use `get`
MethodChannelFirebaseMessaging.setMethodCallHandlers();
}
return _instance ??= MethodChannelFirebaseMessaging.instance;
}
Sets the FirebaseMessagingPlatform.instance
Implementation
static set instance(FirebaseMessagingPlatform instance) {
PlatformInterface.verify(instance, _token);
_instance = instance;
}