AppFlowy/app_flowy/lib/home/application/home_state.dart
2021-07-06 19:56:56 +08:00

19 lines
462 B
Dart

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,
pageContext: const BlankPageContext(),
editContext: none(),
);
}