PIbd31_Teryokhin.A.S._PMU/lib/presentation/home_page/bloc/state.dart

29 lines
590 B
Dart
Raw Normal View History

2024-10-29 17:33:19 +04:00
import 'package:equatable/equatable.dart';
import 'package:pmu_lab_1/domain/models/home.dart';
import 'package:copy_with_extension/copy_with_extension.dart';
part 'state.g.dart';
@CopyWith()
class HomeState extends Equatable {
final HomeData? data;
final bool isLoading;
final bool isPaginationLoading;
final String? error;
const HomeState({
this.data,
this.isLoading = false,
this.isPaginationLoading = false,
this.error,
});
@override
List<Object?> get props => [
data,
isLoading,
isPaginationLoading,
error,
];
}