instance property
JsonPlaceholderPluginPlatform
get
instance
The default instance of JsonPlaceholderPluginPlatform to use.
Defaults to MethodChannelJsonPlaceholderPlugin.
Implementation
static JsonPlaceholderPluginPlatform get instance => _instance;
set
instance
(JsonPlaceholderPluginPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends JsonPlaceholderPluginPlatform when they register themselves.
Implementation
static set instance(JsonPlaceholderPluginPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}