copyWith method
Style
copyWith({
- AttributeMap<
StyledAttribute> ? styles, - AttributeMap<
VariantAttribute< ? variants,IVariant> >
Returns a new Style with the provided styles and variants merged with this mix's values.
If styles or variants is null, the corresponding attribute map of this mix is used.
Implementation
Style copyWith({
AttributeMap<StyledAttribute>? styles,
AttributeMap<VariantAttribute>? variants,
}) {
return Style._(
styles: styles ?? this.styles,
variants: variants ?? this.variants,
);
}