copyWith method

  1. @useResult
FSidebarStyle copyWith({
  1. BoxDecorationDelta? decoration,
  2. ImageFilter? backgroundFilter = imageFilterSentinel,
  3. BoxConstraints? constraints,
  4. FSidebarGroupStyleDelta? groupStyle,
  5. EdgeInsetsGeometry? headerPadding,
  6. EdgeInsetsGeometry? contentPadding,
  7. EdgeInsetsGeometry? 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,
  EdgeInsetsGeometry? headerPadding,
  EdgeInsetsGeometry? contentPadding,
  EdgeInsetsGeometry? 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 ?? this.headerPadding,
  contentPadding: contentPadding ?? this.contentPadding,
  footerPadding: footerPadding ?? this.footerPadding,
);