copyWith method

  1. @override
ToggleGroupItemSpec copyWith({
  1. StyleSpec<FlexBoxSpec>? container,
  2. RemixBoxEffectsSpec? containerEffects,
  3. StyleSpec<TextSpec>? label,
  4. StyleSpec<IconSpec>? icon,
})
inherited

Creates a copy of this spec with the given fields replaced by the non-null parameter values.

Implementation

@override
ToggleGroupItemSpec copyWith({
  StyleSpec<FlexBoxSpec>? container,
  RemixBoxEffectsSpec? containerEffects,
  StyleSpec<TextSpec>? label,
  StyleSpec<IconSpec>? icon,
}) {
  return ToggleGroupItemSpec(
    container: container ?? this.container,
    containerEffects: containerEffects ?? this.containerEffects,
    label: label ?? this.label,
    icon: icon ?? this.icon,
  );
}