copyWith method
- @useResult
- DecorationDelta? decoration,
- TextStyleDelta? contentTextStyle,
Returns a copy of this FOtpFieldItemStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FOtpFieldItemStyle.decoration - The decoration.
- FOtpFieldItemStyle.contentTextStyle - The content's TextStyle.
Implementation
@useResult
FOtpFieldItemStyle copyWith({DecorationDelta? decoration, TextStyleDelta? contentTextStyle}) => .new(
decoration: decoration?.call(this.decoration) ?? this.decoration,
contentTextStyle: contentTextStyle?.call(this.contentTextStyle) ?? this.contentTextStyle,
);