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