2024-12-10 13:04:11 +04:00
|
|
|
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];
|
|
|
|
}
|
2024-12-17 14:28:23 +04:00
|
|
|
|
|
|
|
class HomeSearchEvent extends HomeEvent {
|
|
|
|
final String query;
|
|
|
|
|
|
|
|
const HomeSearchEvent(this.query);
|
|
|
|
|
|
|
|
@override
|
|
|
|
List<Object?> get props => [query];
|
|
|
|
}
|