copyWith method

  1. @useResult
FAutocompleteContentStyle copyWith({
  1. TextStyleDelta? emptyTextStyle,
  2. EdgeInsetsGeometry? padding,
  3. FCircularProgressStyleDelta? progressStyle,
  4. FAutocompleteSectionStyleDelta? sectionStyle,
  5. BoxDecorationDelta? decoration,
  6. ImageFilter Function(double)? barrierFilter()?,
  7. ImageFilter Function(double)? backgroundFilter()?,
  8. EdgeInsetsGeometry? viewInsets,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FAutocompleteContentStyle copyWith({
  TextStyleDelta? emptyTextStyle,
  EdgeInsetsGeometry? padding,
  FCircularProgressStyleDelta? progressStyle,
  FAutocompleteSectionStyleDelta? sectionStyle,
  BoxDecorationDelta? decoration,
  ImageFilter Function(double)? Function()? barrierFilter,
  ImageFilter Function(double)? Function()? backgroundFilter,
  EdgeInsetsGeometry? viewInsets,
}) => .new(
  emptyTextStyle: emptyTextStyle?.call(this.emptyTextStyle) ?? this.emptyTextStyle,
  padding: padding ?? this.padding,
  progressStyle: progressStyle?.call(this.progressStyle) ?? this.progressStyle,
  sectionStyle: sectionStyle?.call(this.sectionStyle) ?? this.sectionStyle,
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  barrierFilter: barrierFilter == null ? this.barrierFilter : barrierFilter(),
  backgroundFilter: backgroundFilter == null ? this.backgroundFilter : backgroundFilter(),
  viewInsets: viewInsets ?? this.viewInsets,
);