copyWith method
AppState
copyWith(
{ - bool? forPlay,
- Map<ID, CubitEntity Function()>? cubits,
- Map<ID, CubitEntity>? instantiatedCubits,
- Map<ID, MapPagesEntry>? inEditorPages,
- Map<ID, Widget Function()>? forPlayPages,
- Map<ID, String Function()>? forPlayComponentsIDToName,
})
Implementation
AppState copyWith({
final bool? forPlay,
final Map<ID, CubitEntity Function()>? cubits,
final Map<ID, CubitEntity>? instantiatedCubits,
final Map<ID, MapPagesEntry>? inEditorPages,
final Map<ID, Widget Function()>? forPlayPages,
final Map<ID, String Function()>? forPlayComponentsIDToName,
}) {
return AppState(
forPlay: forPlay ?? this.forPlay,
cubits: cubits ?? this.cubits,
instantiatedCubits: instantiatedCubits ?? this.instantiatedCubits,
inEditorPages: inEditorPages ?? this.inEditorPages,
forPlayPages: forPlayPages ?? this.forPlayPages,
forPlayComponentsIDToName:
forPlayComponentsIDToName ?? this.forPlayComponentsIDToName,
);
}