SystemEventsConfig class final

Selects which native event listeners are enabled.

Constructors

SystemEventsConfig({KeyboardConfig? keyboard, LifecycleConfig? lifecycle, NetworkConfig? network, MemoryConfig? memory, BatteryConfig? battery, OrientationConfig? orientation, TimeConfig? time, ScreenConfig? screen})
Creates a custom event listener configuration.
const
SystemEventsConfig.all()
Enables every supported event group, including battery events.
const
SystemEventsConfig.defaults()
Enables keyboard, lifecycle, network, memory, orientation, and time events.
const

Properties

battery BatteryConfig?
Enables battery state events when non-null.
final
hashCode int
The hash code for this object.
no setterinherited
keyboard KeyboardConfig?
Enables keyboard visibility events when non-null.
final
lifecycle LifecycleConfig?
Enables app lifecycle events when non-null.
final
memory MemoryConfig?
Enables memory warning events when non-null.
final
network NetworkConfig?
Enables network connectivity events when non-null.
final
orientation OrientationConfig?
Enables screen orientation events when non-null.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screen ScreenConfig?
Enables screen state and brightness events when non-null.
final
time TimeConfig?
Enables system time change events when non-null.
final

Methods

disabled(SystemEventType type) SystemEventsConfig
Returns a copy with type disabled.
enabled(SystemEventType type) SystemEventsConfig
Returns a copy with type enabled.
isEnabled(SystemEventType type) bool
Whether type is enabled.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, bool>
Converts this configuration to the platform channel payload.
toString() String
A string representation of this object.
inherited

Operators

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