copyWith method

  1. @useResult
FHeaderStyle copyWith({
  1. SystemUiOverlayStyle? systemOverlayStyle,
  2. DecorationDelta? decoration,
  3. ImageFilter? backgroundFilter = Sentinels.imageFilter,
  4. EdgeInsetsGeometryDelta? padding,
  5. double? actionSpacing,
  6. TextStyleDelta? titleTextStyle,
  7. FHeaderActionStyleDelta? actionStyle,
  8. FVariantsValueDelta<FPlatformVariantConstraint, FPlatformVariant, bool, Delta>? slidableActions,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FHeaderStyle copyWith({
  SystemUiOverlayStyle? systemOverlayStyle,
  DecorationDelta? decoration,
  ImageFilter? backgroundFilter = Sentinels.imageFilter,
  EdgeInsetsGeometryDelta? padding,
  double? actionSpacing,
  TextStyleDelta? titleTextStyle,
  FHeaderActionStyleDelta? actionStyle,
  FVariantsValueDelta<FPlatformVariantConstraint, FPlatformVariant, bool, Delta>? slidableActions,
}) => .new(
  systemOverlayStyle: systemOverlayStyle ?? this.systemOverlayStyle,
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  backgroundFilter: backgroundFilter == Sentinels.imageFilter ? this.backgroundFilter : backgroundFilter,
  padding: padding?.call(this.padding) ?? this.padding,
  actionSpacing: actionSpacing ?? this.actionSpacing,
  titleTextStyle: titleTextStyle?.call(this.titleTextStyle) ?? this.titleTextStyle,
  actionStyle: actionStyle?.call(this.actionStyle) ?? this.actionStyle,
  slidableActions: slidableActions?.call(this.slidableActions) ?? this.slidableActions,
);