PMU_PIbd32_Kamcharova_K.A/lib/bloc/events.dart

27 lines
499 B
Dart
Raw Normal View History

import 'package:equatable/equatable.dart';
abstract class HomeEvent extends Equatable {
const HomeEvent();
@override
List<Object?> get props => [];
}
class HomeLoadDataEvent extends HomeEvent {
final String searchQuery;
const HomeLoadDataEvent({this.searchQuery = ''});
@override
List<Object?> get props => [searchQuery];
}
class HomeSearchEvent extends HomeEvent {
final String query;
const HomeSearchEvent(this.query);
@override
List<Object?> get props => [query];
}