11 lines
386 B
Dart
11 lines
386 B
Dart
enum AppMode { main, pickExternal, pickInternal, view }
|
|
|
|
extension ExtraAppMode on AppMode {
|
|
bool get canSearch => this == AppMode.main || this == AppMode.pickExternal;
|
|
|
|
bool get canSelect => this == AppMode.main;
|
|
|
|
bool get hasDrawer => this == AppMode.main || this == AppMode.pickExternal;
|
|
|
|
bool get isPicking => this == AppMode.pickExternal || this == AppMode.pickInternal;
|
|
}
|