stream property

Stream<FGBGType> stream

Implementation

static Stream<FGBGType> get stream {
  return _stream ??= _channel
      .receiveBroadcastStream()
      .where((_) => !_ignoreEvent)
      .map((e) =>
          e == "foreground" ? FGBGType.foreground : FGBGType.background);
}