mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
19 lines
456 B
Dart
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(),
|
||
|
);
|
||
|
}
|