copyWith method

  1. @useResult
FSidebarStyle copyWith({
  1. BoxDecorationDelta? decoration,
  2. ImageFilter? backgroundFilter = imageFilterSentinel,
  3. BoxConstraints? constraints,
  4. FSidebarGroupStyleDelta? groupStyle,
  5. EdgeInsetsGeometryDelta? headerPadding,
  6. EdgeInsetsGeometryDelta? contentPadding,
  7. EdgeInsetsGeometryDelta? footerPadding,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FSidebarStyle copyWith({
  BoxDecorationDelta? decoration,
  ImageFilter? backgroundFilter = imageFilterSentinel,
  BoxConstraints? constraints,
  FSidebarGroupStyleDelta? groupStyle,
  EdgeInsetsGeometryDelta? headerPadding,
  EdgeInsetsGeometryDelta? contentPadding,
  EdgeInsetsGeometryDelta? footerPadding,
}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  backgroundFilter: backgroundFilter == imageFilterSentinel ? this.backgroundFilter : backgroundFilter,
  constraints: constraints ?? this.constraints,
  groupStyle: groupStyle?.call(this.groupStyle) ?? this.groupStyle,
  headerPadding: headerPadding?.call(this.headerPadding) ?? this.headerPadding,
  contentPadding: contentPadding?.call(this.contentPadding) ?? this.contentPadding,
  footerPadding: footerPadding?.call(this.footerPadding) ?? this.footerPadding,
);