copyWith method
- @useResult
- TextStyleDelta? emptyTextStyle,
- EdgeInsetsGeometry? padding,
- FCircularProgressStyleDelta? progressStyle,
- FAutocompleteSectionStyleDelta? sectionStyle,
- BoxDecorationDelta? decoration,
- ImageFilter Function(double)? barrierFilter()?,
- ImageFilter Function(double)? backgroundFilter()?,
- EdgeInsetsGeometry? viewInsets,
Returns a copy of this FAutocompleteContentStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FAutocompleteContentStyle.emptyTextStyle - The default text style when there are no results.
- FAutocompleteContentStyle.padding - The padding surrounding the content.
- FAutocompleteContentStyle.progressStyle - The loading progress's style.
- FAutocompleteContentStyle.sectionStyle - The section's style.
- FAutocompleteContentStyle.decoration - The popover's decoration.
- FAutocompleteContentStyle.barrierFilter - An optional callback that takes the current animation transition value (0.0 to 1.0) and returns an ImageFilter that is used as the barrier.
- FAutocompleteContentStyle.backgroundFilter - An optional callback that takes the current animation transition value (0.0 to 1.0) and returns an ImageFilter that is used as the background.
- FAutocompleteContentStyle.viewInsets - The additional insets of the view.
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,
);