import 'package:equatable/equatable.dart'; import 'package:flutter/foundation.dart'; @immutable class ActionEvent extends Equatable { final T action; @override List get props => [action]; const ActionEvent(this.action); } @immutable class ActionStartedEvent extends ActionEvent { const ActionStartedEvent(super.action); } @immutable class ActionEndedEvent extends ActionEvent { const ActionEndedEvent(super.action); }