Toggle navigation
Toggle navigation
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
Authored by
Navaron Bracke
2023-10-22 19:47:50 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
216a91d1c0d8b129c38a9a2dfbcd0f54b27cc9d9
216a91d1
1 parent
24dd100a
convert torch state to enhanced enum
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
lib/src/enums/torch_state.dart
lib/src/enums/torch_state.dart
View file @
216a91d
/// The state of t
orch
.
/// The state of t
he flashlight
.
enum
TorchState
{
/// Torch is off.
off
,
/// The flashlight is off.
off
(
0
),
/// Torch is on.
on
,
/// The flashlight is on.
on
(
1
);
const
TorchState
(
this
.
rawValue
);
/// The raw value for the torch state.
final
int
rawValue
;
}
...
...
Please
register
or
login
to post a comment