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

19 lines
462 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,
required bool showMenu,
required PageContext pageContext,
required Option<EditPannelContext> editContext,
}) = _HomeState;
factory HomeState.initial() => HomeState(
isLoading: false,
showMenu: true,
2021-07-06 11:56:56 +00:00
pageContext: const BlankPageContext(),
2021-06-19 15:41:19 +00:00
editContext: none(),
);
}