import 'package:equatable/equatable.dart';
import 'package:flutter/cupertino.dart';
import 'package:zhiying_base_widget/widgets/home/home_quick_entry/model/home_quick_entry_model.dart';

abstract class HomeQuickEntryState extends Equatable {
  const HomeQuickEntryState();

  @override
  List<Object> get props => [];
}

/// 初始化状态
class InitialHomeQuickEntryState extends HomeQuickEntryState {
  @override
  List<Object> get props => [];
}

/// 加载数据完毕
class HomeQuickEntryLoadedState extends HomeQuickEntryState {
  final HomeQuickEntryModel model;

  const HomeQuickEntryLoadedState({@required this.model});

  @override
  List<Object> get props => [this.model];
}

/// 加载缓存数据
class HomeQuickEntryCachedState extends HomeQuickEntryState {
  final HomeQuickEntryModel model;

  const HomeQuickEntryCachedState({@required this.model});

  @override
  List<Object> get props => [this.model];
}

/// 加载数据出错
class HomeQuickEntryErrorState extends HomeQuickEntryState {}
