copyWith method
- @useResult
- FFormFieldStyle formFieldStyle(
- FFormFieldStyle style
- FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
- IconThemeData? iconStyle,
- BorderRadius? borderRadius,
- double? borderWidth,
- EdgeInsets? pagePadding,
- List<
BoxShadow> ? shadow, - FTappableStyle tappableStyle(
- FTappableStyle style
Returns a copy of this FStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FStyle.formFieldStyle - The style for the form field.
- FStyle.focusedOutlineStyle - The focused outline style.
- FStyle.iconStyle - The icon style.
- FStyle.borderRadius - The border radius.
- FStyle.borderWidth - The border width.
- FStyle.pagePadding - The page's padding.
- FStyle.shadow - The shadow used for elevated widgets.
- FStyle.tappableStyle - The tappable style.
Implementation
@useResult
FStyle copyWith({
FFormFieldStyle Function(FFormFieldStyle style)? formFieldStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
IconThemeData? iconStyle,
BorderRadius? borderRadius,
double? borderWidth,
EdgeInsets? pagePadding,
List<BoxShadow>? shadow,
FTappableStyle Function(FTappableStyle style)? tappableStyle,
}) => FStyle(
formFieldStyle: formFieldStyle != null ? formFieldStyle(this.formFieldStyle) : this.formFieldStyle,
focusedOutlineStyle: focusedOutlineStyle != null
? focusedOutlineStyle(this.focusedOutlineStyle)
: this.focusedOutlineStyle,
iconStyle: iconStyle ?? this.iconStyle,
borderRadius: borderRadius ?? this.borderRadius,
borderWidth: borderWidth ?? this.borderWidth,
pagePadding: pagePadding ?? this.pagePadding,
shadow: shadow ?? this.shadow,
tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
);