mirror of
https://github.com/vodemn/m3_lightmeter.git
synced 2024-10-18 14:20:40 +00:00
27 lines
481 B
Dart
27 lines
481 B
Dart
|
enum AppFeature {
|
||
|
cameraMetering,
|
||
|
ndFilters,
|
||
|
theming,
|
||
|
spotMetering,
|
||
|
histogram,
|
||
|
listOfFilms,
|
||
|
equipmentProfiles,
|
||
|
timer,
|
||
|
mainScreenCustomization;
|
||
|
|
||
|
String get name {
|
||
|
return toString().replaceAll(runtimeType.toString(), '').replaceAll('.', '');
|
||
|
}
|
||
|
|
||
|
bool get isFree {
|
||
|
switch (this) {
|
||
|
case AppFeature.cameraMetering:
|
||
|
case AppFeature.ndFilters:
|
||
|
case AppFeature.theming:
|
||
|
return true;
|
||
|
default:
|
||
|
return false;
|
||
|
}
|
||
|
}
|
||
|
}
|