instance property

The default instance of AppSettingsCheckerPlatform to use.

By default, this will return an instance of MethodChannelAppSettingsChecker.

Implementation

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

Sets the instance of AppSettingsCheckerPlatform to use. Platform-specific implementations should assign their own class that extends AppSettingsCheckerPlatform.

This is typically called during plugin registration to bind platform-specific logic.

Implementation

static set instance(AppSettingsCheckerPlatform instance) {
  PlatformInterface.verifyToken(
    instance,
    _token,
  ); // Verifies that the instance is using the correct token.
  _instance = instance;
}