copyWith method
BadgeThemeData
copyWith({
- Curve? curve,
- Duration? duration,
- AlignmentGeometry? alignment,
- Offset? offset,
- 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),
);
}