AppFlowy/app_flowy/lib/home/application/home_state.dart

19 lines
473 B
Dart
Raw Normal View History

2021-06-19 15:41:19 +00:00
part of 'home_bloc.dart';
@freezed
abstract class HomeState implements _$HomeState {
const factory HomeState({
required bool isLoading,
2021-07-20 15:51:08 +00:00
required bool forceCollapse,
2021-06-19 15:41:19 +00:00
required PageContext pageContext,
required Option<EditPannelContext> editContext,
}) = _HomeState;
factory HomeState.initial() => HomeState(
isLoading: false,
2021-07-20 15:51:08 +00:00
forceCollapse: false,
2021-07-06 11:56:56 +00:00
pageContext: const BlankPageContext(),
2021-06-19 15:41:19 +00:00
editContext: none(),
);
}