• This project
    • Loading...
  • Sign in

flutter_package / mobile_scanner

Go to a project
Toggle navigation
  • Projects
  • Groups
  • Snippets
  • Help
Toggle navigation pinning
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • mobile_scanner
  • lib
  • src
  • enums
  • torch_state.dart
  • convert torch state to enhanced enum · 216a91d1
    216a91d1 Browse Directory
    Navaron Bracke authored 2023-10-22 19:47:50 +0200
torch_state.dart 230 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13
/// The state of the flashlight.
enum TorchState {
  /// The flashlight is off.
  off(0),

  /// The flashlight is on.
  on(1);

  const TorchState(this.rawValue);

  /// The raw value for the torch state.
  final int rawValue;
}