MethodChannelFlutterTimeGuard class

A platform-specific implementation of FlutterTimeGuardPlatform using method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
isChanged bool
Tracks whether a time change has already been detected. Used to prevent handling multiple callbacks when stopListeningAfterFirstChange is true. (Lock)
getter/setter pair
methodChannel MethodChannel
The method channel used to communicate with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

listenToDateTimeChange(dynamic onTimeChanged(), bool stopListeingAfterFirstChange) → void
Listen to changes in the system time done by the user, using a channel.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited