torchStream property

Stream<bool> get torchStream

Returns a stream of torch state changes. Emits true when torch is enabled, false when disabled. Useful when another app changes the flashlight state.

Implementation

Stream<bool> get torchStream => TorchFlashlight.torchStream;