copyWith method
- @useResult
- FFormFieldStyleDelta? formFieldStyle,
- FFocusedOutlineStyleDelta? focusedOutlineStyle,
- IconThemeDataDelta? iconStyle,
- BorderRadius? borderRadius,
- double? borderWidth,
- EdgeInsetsDelta? pagePadding,
- List<
BoxShadow> ? shadow, - FTappableStyleDelta? tappableStyle,
Returns a copy of this FStyle with the given properties replaced.
See customizing widget styles.
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({
FFormFieldStyleDelta? formFieldStyle,
FFocusedOutlineStyleDelta? focusedOutlineStyle,
IconThemeDataDelta? iconStyle,
BorderRadius? borderRadius,
double? borderWidth,
EdgeInsetsDelta? pagePadding,
List<BoxShadow>? shadow,
FTappableStyleDelta? tappableStyle,
}) => .new(
formFieldStyle: formFieldStyle?.call(this.formFieldStyle) ?? this.formFieldStyle,
focusedOutlineStyle: focusedOutlineStyle?.call(this.focusedOutlineStyle) ?? this.focusedOutlineStyle,
iconStyle: iconStyle?.call(this.iconStyle) ?? this.iconStyle,
borderRadius: borderRadius ?? this.borderRadius,
borderWidth: borderWidth ?? this.borderWidth,
pagePadding: pagePadding?.call(this.pagePadding) ?? this.pagePadding,
shadow: shadow ?? this.shadow,
tappableStyle: tappableStyle?.call(this.tappableStyle) ?? this.tappableStyle,
);