stream property

Stream<HardwareButton> stream
getter/setter pair

Implementation

static Stream<HardwareButton> stream = _channel
    .receiveBroadcastStream()
    .cast<bool>()
    .map((event) =>
        event ? HardwareButton.volume_down : HardwareButton.volume_up);