copyWith method

  1. @override
AnimatedStyle copyWith({
  1. AttributeMap<StyledAttribute>? styles,
  2. AttributeMap<VariantAttribute<IVariant>>? variants,
  3. 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,
  );
}