import 'package:equatable/equatable.dart'; import 'package:flutter_app/presentation/home_page/home_page.dart'; class HomeState extends Equatable { final HomeData? data; final bool isLoading; final bool isPaginationLoading; const HomeState({this.data, this.isLoading = false, this.isPaginationLoading = false}); HomeState copyWith({HomeData? data, bool? isLoading, bool? isPaginationLoading}) => HomeState( data: data ?? this.data, isLoading: isLoading ?? this.isLoading, isPaginationLoading: isPaginationLoading ?? this.isPaginationLoading); @override List get props => [data, isLoading, isPaginationLoading]; }