copyWith method

CockpitWidgetTreeOptions copyWith({
  1. CockpitWidgetTreeProfile? profile,
  2. int? maxNodes,
  3. int? maxProps,
})

Returns a copy with the supplied fields replaced.

Implementation

CockpitWidgetTreeOptions copyWith({
  CockpitWidgetTreeProfile? profile,
  int? maxNodes,
  int? maxProps,
}) => CockpitWidgetTreeOptions(
  profile: profile ?? this.profile,
  maxNodes: maxNodes ?? this.maxNodes,
  maxProps: maxProps ?? this.maxProps,
);