m3_lightmeter/lib/data/models/app_feature.dart

27 lines
481 B
Dart
Raw Normal View History

2024-07-15 20:00:52 +00:00
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;
}
}
}