isEnabled method

bool isEnabled(
  1. SystemEventType type
)

Whether type is enabled.

Implementation

bool isEnabled(SystemEventType type) {
  return switch (type) {
    SystemEventType.keyboard => keyboard != null,
    SystemEventType.lifecycle => lifecycle != null,
    SystemEventType.network => network != null,
    SystemEventType.memory => memory != null,
    SystemEventType.battery => battery != null,
    SystemEventType.orientation => orientation != null,
    SystemEventType.time => time != null,
    SystemEventType.screen => screen != null,
  };
}