copyWith method

  1. @override
BadgeThemeData copyWith({
  1. Curve? curve,
  2. Duration? duration,
  3. AlignmentGeometry? alignment,
  4. Offset? offset,
  5. BadgeStyle? style,
})
override

Creates a copy of this BadgeThemeData but with the given fields replaced with the new values.

Implementation

@override
BadgeThemeData copyWith({
  Curve? curve,
  Duration? duration,
  AlignmentGeometry? alignment,
  Offset? offset,
  BadgeStyle? style,
}) {
  return BadgeThemeData(
    curve: curve ?? this.curve,
    duration: duration ?? this.duration,
    alignment: alignment ?? this.alignment,
    offset: offset ?? this.offset,
    style: this.style.merge(style),
  );
}