You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
520B

  1. part of 'location_bloc.dart';
  2. abstract class LocationState extends Equatable {
  3. const LocationState();
  4. @override
  5. List<Object> get props => [];
  6. }
  7. class LocationInitial extends LocationState {}
  8. class LocationFailure extends LocationState {}
  9. class LocationSuccess<T> extends LocationState {
  10. final List<T> items;
  11. const LocationSuccess({this.items});
  12. LocationSuccess copyWith({List<T> items}) {
  13. return LocationSuccess(items: items ?? this.items);
  14. }
  15. @override
  16. List<Object> get props => [items];
  17. }