copyWith method

EditorShellConfig copyWith({
  1. bool? hosted,
  2. bool? showDefaultAppBar,
  3. InspectorPresentation? inspectorPresentation,
  4. bool? showLayersPanel,
  5. HostedHeaderBuilder? hostedHeaderBuilder,
  6. HostedBottomBuilder? hostedBottomBuilder,
  7. double? hostedBottomHeight,
})

Implementation

EditorShellConfig copyWith({
  bool? hosted,
  bool? showDefaultAppBar,
  InspectorPresentation? inspectorPresentation,
  bool? showLayersPanel,
  HostedHeaderBuilder? hostedHeaderBuilder,
  HostedBottomBuilder? hostedBottomBuilder,
  double? hostedBottomHeight,
}) {
  return EditorShellConfig(
    hosted: hosted ?? this.hosted,
    showDefaultAppBar: showDefaultAppBar ?? this.showDefaultAppBar,
    inspectorPresentation:
        inspectorPresentation ?? this.inspectorPresentation,
    showLayersPanel: showLayersPanel ?? this.showLayersPanel,
    hostedHeaderBuilder: hostedHeaderBuilder ?? this.hostedHeaderBuilder,
    hostedBottomBuilder: hostedBottomBuilder ?? this.hostedBottomBuilder,
    hostedBottomHeight: hostedBottomHeight ?? this.hostedBottomHeight,
  );
}