enabled method
Returns a copy with type enabled.
Implementation
SystemEventsConfig enabled(SystemEventType type) {
return SystemEventsConfig(
keyboard: type == SystemEventType.keyboard
? const KeyboardConfig()
: keyboard,
lifecycle: type == SystemEventType.lifecycle
? const LifecycleConfig()
: lifecycle,
network: type == SystemEventType.network
? const NetworkConfig()
: network,
memory: type == SystemEventType.memory ? const MemoryConfig() : memory,
battery: type == SystemEventType.battery
? const BatteryConfig()
: battery,
orientation: type == SystemEventType.orientation
? const OrientationConfig()
: orientation,
time: type == SystemEventType.time ? const TimeConfig() : time,
screen: type == SystemEventType.screen ? const ScreenConfig() : screen,
);
}