instance property

The default instance of ReferralHeroFlutterPlatform to use.

This defaults to the MethodChannelReferralHeroFlutter implementation. Platform-specific implementations should override this with their own platform-specific class that extends ReferralHeroFlutterPlatform when they register themselves.

Implementation

static ReferralHeroFlutterPlatform get instance => _instance;
set instance (ReferralHeroFlutterPlatform instance)

Sets the default instance of ReferralHeroFlutterPlatform to the provided instance.

Platform-specific implementations should use this setter to register their platform-specific class that extends ReferralHeroFlutterPlatform.

Implementation

static set instance(ReferralHeroFlutterPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}