copyWith method

  1. @useResult
FBadgeStyle copyWith({
  1. DecorationDelta? decoration,
  2. FBadgeContentStyleDelta? contentStyle,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FBadgeStyle copyWith({DecorationDelta? decoration, FBadgeContentStyleDelta? contentStyle}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  contentStyle: contentStyle?.call(this.contentStyle) ?? this.contentStyle,
);