copyWith method
AnimatedStyle
copyWith({
- AttributeMap<
StyledAttribute> ? styles, - AttributeMap<
VariantAttribute< ? variants,IVariant> > - AnimatedData? animated,
override
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
@override
AnimatedStyle copyWith({
AttributeMap<StyledAttribute>? styles,
AttributeMap<VariantAttribute>? variants,
AnimatedData? animated,
}) {
return AnimatedStyle._(
styles: styles ?? this.styles,
variants: variants ?? this.variants,
animated: animated ?? this.animated,
);
}