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