copyWith method

  1. @useResult
FBadgeContentStyle copyWith({
  1. TextStyle? labelTextStyle,
  2. EdgeInsetsGeometry? padding,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

labelTextStyle

The label's TextStyle.

padding

The padding.

Implementation

@useResult
FBadgeContentStyle copyWith({TextStyle? labelTextStyle, EdgeInsetsGeometry? padding}) =>
    FBadgeContentStyle(labelTextStyle: labelTextStyle ?? this.labelTextStyle, padding: padding ?? this.padding);