PageState constructor

const PageState({
  1. required bool isPage,
  2. required ComponentFit fit,
  3. NodeID? nodeComponentID,
  4. List<CNode> nodes = const [],
  5. bool isDeviceCurrentlyFocused = true,
  6. bool isDeviceCurrentlyHovered = true,
  7. Map<ID, CubitEntity> cubits = const {},
  8. Map<ID, ControllerVariable> controllers = const {},
  9. Map<ID, Parameter> parameters = const {},
  10. Map<ID, ComponentParameterField> passedParameterFromTopComponent = const {},
  11. SupabaseClient createCMSClient()?,
  12. SupabaseClient createSupabaseClient()?,
  13. SupabaseClient? internalCmsClient,
  14. 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;