copyWith method
ToggleGroupItemSpec
copyWith({
- StyleSpec<
FlexBoxSpec> ? container, - RemixBoxEffectsSpec? containerEffects,
- StyleSpec<
TextSpec> ? label, - 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,
);
}