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(T action) : super(action); } @immutable class ActionEndedEvent extends ActionEvent { const ActionEndedEvent(T action) : super(action); }