instance property
FlutterTimezoneObserverPlatform
get
instance
The singleton instance of the FlutterTimezoneObserverPlatform.
This is the entry point for the platform-specific implementation.
Implementation
static FlutterTimezoneObserverPlatform get instance => _instance;
set
instance
(FlutterTimezoneObserverPlatform instance)
Sets the platform-specific instance of FlutterTimezoneObserverPlatform.
This is primarily used for testing, allowing a mock implementation to be provided.
Implementation
static set instance(FlutterTimezoneObserverPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}