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 Modeparams
is the list of params of the Scaffoldstates
is the list of states of the Scaffolddataset
is the list of dataset created by other widgets inside the same pagepageId
is the id of the pageisPage
is true if this is a page, false if it is a componentcolorStyles
is the list of color stylestextStyles
is the list of text styleslocalization
is the localization object theme is the theme objectdeviceInfo
is the device info objectworkflows
is the list of workflowsconfig
is the project config objectnodeOverrides
is the list of node overridesfit
is the fit of the componentconst
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
, thetoString
method will be overridden to output this instance'sprops
.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