copyWith method

  1. @useResult
FBadgeContentStyle copyWith({
  1. TextStyleDelta? labelTextStyle,
  2. EdgeInsetsGeometryDelta? padding,
})

Returns a copy of this FBadgeContentStyle with the given properties replaced.

See customizing widget styles.

Parameters

Implementation

@useResult
FBadgeContentStyle copyWith({TextStyleDelta? labelTextStyle, EdgeInsetsGeometryDelta? padding}) => .new(
  labelTextStyle: labelTextStyle?.call(this.labelTextStyle) ?? this.labelTextStyle,
  padding: padding?.call(this.padding) ?? this.padding,
);