copyWith method
PageState
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,
Implementation
PageState copyWith({
final int? loop,
final bool? isVertical,
final bool? isPage,
final Nodes? nodes,
final List<int>? xLines,
final List<int>? yLines,
final ComponentFit? fit,
final NodeID? nodeComponentID,
final bool? isDeviceCurrentlyFocused,
final bool? isDeviceCurrentlyHovered,
final Map<ID, CubitEntity>? cubits,
final Map<ID, ControllerVariable>? controllers,
final Map<ID, Parameter>? parameters,
final Map<ID, ComponentParameterField>? passedParameterFromTopComponent,
final SupabaseClient Function()? createCMSClient,
final SupabaseClient Function()? createSupabaseClient,
final SupabaseClient? cmsClient,
final SupabaseClient? supabaseClient,
}) {
return PageState(
isPage: isPage ?? this.isPage,
nodes: nodes ?? this.nodes,
fit: fit ?? this.fit,
nodeComponentID: nodeComponentID ?? this.nodeComponentID,
isDeviceCurrentlyFocused:
isDeviceCurrentlyFocused ?? this.isDeviceCurrentlyFocused,
isDeviceCurrentlyHovered:
isDeviceCurrentlyHovered ?? this.isDeviceCurrentlyHovered,
cubits: cubits ?? this.cubits,
controllers: controllers ?? this.controllers,
parameters: parameters ?? this.parameters,
passedParameterFromTopComponent: passedParameterFromTopComponent ??
this.passedParameterFromTopComponent,
createCMSClient: createCMSClient ?? this.createCMSClient,
createSupabaseClient: createSupabaseClient ?? this.createSupabaseClient,
internalCmsClient: cmsClient ?? _getCmsClient,
internalSupabaseClient: supabaseClient ?? _getSupabaseClient,
);
}