stream property

Stream<FGBGType> stream

Implementation

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