import 'package:meta/meta.dart';
import 'package:equatable/equatable.dart';
import 'package:zhiying_base_widget/pages/main_page/model/background_model.dart';

@immutable
abstract class CustomPageState extends Equatable{
  @override
  List<Object> get props => [];
}

/// 初始化
class CustomPageInitialState extends CustomPageState {}

/// 数据加载成功
class CustomPageLoadedState extends CustomPageState {
  BackgroundModel backgroundModel;
  List<Map<String, dynamic>> model;
  CustomPageLoadedState({this.model,this.backgroundModel});
  @override
  List<Object> get props => [this.model];
}

/// 刷新成功
class CustomPageRefreshSuccessState extends CustomPageState{}

/// 刷新失败
class CustomPageRefreshErrorState extends CustomPageState{}

/// 初始化失败
class CustomPageInitErrorState extends CustomPageState {}

/// 数据加载失败
class CustomPageErrorState extends CustomPageState {}
