copyWith method
- @useResult
- TextStyle? emptyTextStyle,
- EdgeInsetsGeometry? padding,
- FCircularProgressStyle progressStyle(
- FCircularProgressStyle style
- FAutocompleteSectionStyle sectionStyle()?,
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.
Implementation
@useResult
FAutocompleteContentStyle copyWith({
TextStyle? emptyTextStyle,
EdgeInsetsGeometry? padding,
FCircularProgressStyle Function(FCircularProgressStyle style)? progressStyle,
FAutocompleteSectionStyle Function(FAutocompleteSectionStyle style)? sectionStyle,
}) => FAutocompleteContentStyle(
emptyTextStyle: emptyTextStyle ?? this.emptyTextStyle,
padding: padding ?? this.padding,
progressStyle: progressStyle != null ? progressStyle(this.progressStyle) : this.progressStyle,
sectionStyle: sectionStyle != null ? sectionStyle(this.sectionStyle) : this.sectionStyle,
);