copyWith method
- @useResult
- TextStyle? emptyTextStyle,
- EdgeInsetsGeometry? padding,
- FCircularProgressStyle progressStyle(
- FCircularProgressStyle style
- FAutocompleteSectionStyle sectionStyle()?,
- BoxDecoration? decoration,
- ImageFilter barrierFilter()?,
- ImageFilter backgroundFilter()?,
- EdgeInsetsGeometry? viewInsets,
Returns a copy of this FAutocompleteContentStyle with the given properties replaced.
Consider using the CLI to generate a style.
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({
TextStyle? emptyTextStyle,
EdgeInsetsGeometry? padding,
FCircularProgressStyle Function(FCircularProgressStyle style)? progressStyle,
FAutocompleteSectionStyle Function(FAutocompleteSectionStyle style)? sectionStyle,
BoxDecoration? decoration,
ImageFilter Function(double)? barrierFilter,
ImageFilter Function(double)? backgroundFilter,
EdgeInsetsGeometry? viewInsets,
}) => .new(
emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
padding: padding ?? this.padding,
progressStyle: progressStyle != null ? progressStyle(this.progressStyle) : this.progressStyle,
sectionStyle: sectionStyle != null ? sectionStyle(this.sectionStyle) : this.sectionStyle,
decoration: decoration ?? this.decoration,
barrierFilter: barrierFilter ?? this.barrierFilter,
backgroundFilter: backgroundFilter ?? this.backgroundFilter,
viewInsets: viewInsets ?? this.viewInsets,
);