MethodChannelPowerSettingWindows class
An implementation of PowerSettingWindowsPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- PowerSettingWindowsPlatform
- MethodChannelPowerSettingWindows
Constructors
Properties
- eventChannel → EventChannel
-
The event channel used to interact with the native platform.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addObserver(
PowerSettingObserver observer) → void -
Registers the given object as a power setting observer. Power setting
observers are notified when various power setting events occur.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeObserver(
PowerSettingObserver observer) → void -
Unregisters the given observer. This should be used sparingly as
it is relatively expensive (O(N) in the number of registered
observers).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited