PageState constructor
const
PageState({
- required bool isPage,
- required ComponentFit fit,
- NodeID? nodeComponentID,
- List<
CNode> nodes = const [], - bool isDeviceCurrentlyFocused = true,
- bool isDeviceCurrentlyHovered = true,
- Map<
ID, CubitEntity> cubits = const {}, - Map<
ID, ControllerVariable> controllers = const {}, - Map<
ID, Parameter> parameters = const {}, - Map<
ID, ComponentParameterField> passedParameterFromTopComponent = const {}, - SupabaseClient createCMSClient()?,
- SupabaseClient createSupabaseClient()?,
- SupabaseClient? internalCmsClient,
- SupabaseClient? internalSupabaseClient,
Constructor
forPlay is true when we are in Play Mode
params is the list of params of the Scaffold
states is the list of states of the Scaffold
dataset is the list of dataset created by other widgets inside the same page
pageId is the id of the page
isPage is true if this is a page, false if it is a component
colorStyles is the list of color styles
textStyles is the list of text styles
localization is the localization object
theme is the theme object
deviceInfo is the device info object
workflows is the list of workflows
config is the project config object
nodeOverrides is the list of node overrides
fit is the fit of the component
Implementation
const PageState({
required this.isPage,
required this.fit,
this.nodeComponentID,
this.nodes = const [],
this.isDeviceCurrentlyFocused = true,
this.isDeviceCurrentlyHovered = true,
this.cubits = const {},
this.controllers = const {},
this.parameters = const {},
this.passedParameterFromTopComponent = const {},
this.createCMSClient,
this.createSupabaseClient,
SupabaseClient? internalCmsClient,
SupabaseClient? internalSupabaseClient,
}) : _cmsClient = internalCmsClient,
_supabaseClient = internalSupabaseClient;