copyWith method
- @useResult
- DecorationDelta? decoration,
- TextStyleDelta? labelTextStyle,
- EdgeInsetsGeometryDelta? padding,
Returns a copy of this FBadgeStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FBadgeStyle.decoration - The decoration.
- FBadgeStyle.labelTextStyle - The label's TextStyle.
- FBadgeStyle.padding - The padding.
Implementation
@useResult
FBadgeStyle copyWith({
DecorationDelta? decoration,
TextStyleDelta? labelTextStyle,
EdgeInsetsGeometryDelta? padding,
}) => .new(
decoration: decoration?.call(this.decoration) ?? this.decoration,
labelTextStyle: labelTextStyle?.call(this.labelTextStyle) ?? this.labelTextStyle,
padding: padding?.call(this.padding) ?? this.padding,
);