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

19 lines
456 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: BlankPageContext(),
editContext: none(),
);
}