copyWith method
- @useResult
- SystemUiOverlayStyle? systemOverlayStyle,
- BoxDecoration? decoration,
- ImageFilter? backgroundFilter,
- EdgeInsetsGeometry? padding,
- double? actionSpacing,
- TextStyle? titleTextStyle,
- FHeaderActionStyle actionStyle(
- FHeaderActionStyle style
Returns a copy of this FHeaderStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FHeaderStyle.systemOverlayStyle - The system overlay style.
- FHeaderStyle.decoration - The decoration.
- FHeaderStyle.backgroundFilter - An optional background filter.
- FHeaderStyle.padding - The padding.
- FHeaderStyle.actionSpacing - The spacing between FHeaderActions.
- FHeaderStyle.titleTextStyle - The title's TextStyle.
- FHeaderStyle.actionStyle - The FHeaderActions' style.
Implementation
@useResult
FHeaderStyle copyWith({
SystemUiOverlayStyle? systemOverlayStyle,
BoxDecoration? decoration,
ImageFilter? backgroundFilter,
EdgeInsetsGeometry? padding,
double? actionSpacing,
TextStyle? titleTextStyle,
FHeaderActionStyle Function(FHeaderActionStyle style)? actionStyle,
}) => FHeaderStyle(
systemOverlayStyle: systemOverlayStyle ?? this.systemOverlayStyle,
decoration: decoration ?? this.decoration,
backgroundFilter: backgroundFilter ?? this.backgroundFilter,
padding: padding ?? this.padding,
actionSpacing: actionSpacing ?? this.actionSpacing,
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
actionStyle: actionStyle != null ? actionStyle(this.actionStyle) : this.actionStyle,
);