PageState class

PageState is the state of the tree

Constructors

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
const

Properties

controllers Map<ID, ControllerVariable>
final
createCMSClient → SupabaseClient Function()?
final
createSupabaseClient → SupabaseClient Function()?
final
cubits Map<ID, CubitEntity>
final
fit ComponentFit
final
hashCode int
The hash code for this object.
no setterinherited
isDeviceCurrentlyFocused bool
final
isDeviceCurrentlyHovered bool
final
isPage bool
Is this a page or a component?
final
nodeComponentID NodeID?
final
nodes List<CNode>
Nodes
final
parameters Map<ID, Parameter>
final
passedParameterFromTopComponent Map<ID, ComponentParameterField>
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({int? loop, bool? isVertical, bool? isPage, Nodes? nodes, List<int>? xLines, List<int>? yLines, ComponentFit? fit, NodeID? nodeComponentID, bool? isDeviceCurrentlyFocused, bool? isDeviceCurrentlyHovered, Map<ID, CubitEntity>? cubits, Map<ID, ControllerVariable>? controllers, Map<ID, Parameter>? parameters, Map<ID, ComponentParameterField>? passedParameterFromTopComponent, SupabaseClient createCMSClient()?, SupabaseClient createSupabaseClient()?, SupabaseClient? cmsClient, SupabaseClient? supabaseClient}) PageState
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited