TF-976 Blur out the option context menu mailbox action when deactivated on web
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
abstract class ContextMenuItemAction<T> with EquatableMixin {
|
||||
final T action;
|
||||
final ContextMenuItemState state;
|
||||
|
||||
ContextMenuItemAction(this.action, this.state);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [action, state];
|
||||
|
||||
bool get isActivated => state == ContextMenuItemState.activated;
|
||||
}
|
||||
|
||||
enum ContextMenuItemState {
|
||||
activated,
|
||||
deactivated
|
||||
}
|
||||
Reference in New Issue
Block a user