mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
19 lines
473 B
Dart
19 lines
473 B
Dart
part of 'home_bloc.dart';
|
|
|
|
@freezed
|
|
abstract class HomeState implements _$HomeState {
|
|
const factory HomeState({
|
|
required bool isLoading,
|
|
required bool forceCollapse,
|
|
required PageContext pageContext,
|
|
required Option<EditPannelContext> editContext,
|
|
}) = _HomeState;
|
|
|
|
factory HomeState.initial() => HomeState(
|
|
isLoading: false,
|
|
forceCollapse: false,
|
|
pageContext: const BlankPageContext(),
|
|
editContext: none(),
|
|
);
|
|
}
|