copyWith method

  1. @useResult
FOtpFieldItemStyle copyWith({
  1. DecorationDelta? decoration,
  2. TextStyleDelta? contentTextStyle,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FOtpFieldItemStyle copyWith({DecorationDelta? decoration, TextStyleDelta? contentTextStyle}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  contentTextStyle: contentTextStyle?.call(this.contentTextStyle) ?? this.contentTextStyle,
);