copyWith method
HintTheme
copyWith({
- Color? tooltipBackground,
- Color? tooltipForeground,
- Color? scrimColor,
- BorderRadius? tooltipRadius,
- EdgeInsets? tooltipPadding,
- TextStyle? tooltipTitleStyle,
- TextStyle? tooltipDescriptionStyle,
- bool? showTail,
- ImageFilter? imageFilter,
- bool? showPulse,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
HintTheme copyWith({
Color? tooltipBackground,
Color? tooltipForeground,
Color? scrimColor,
BorderRadius? tooltipRadius,
EdgeInsets? tooltipPadding,
TextStyle? tooltipTitleStyle,
TextStyle? tooltipDescriptionStyle,
bool? showTail,
ImageFilter? imageFilter,
bool? showPulse,
}) {
return HintTheme(
tooltipBackground: tooltipBackground ?? this.tooltipBackground,
tooltipForeground: tooltipForeground ?? this.tooltipForeground,
scrimColor: scrimColor ?? this.scrimColor,
tooltipRadius: tooltipRadius ?? this.tooltipRadius,
tooltipPadding: tooltipPadding ?? this.tooltipPadding,
tooltipTitleStyle: tooltipTitleStyle ?? this.tooltipTitleStyle,
tooltipDescriptionStyle:
tooltipDescriptionStyle ?? this.tooltipDescriptionStyle,
showTail: showTail ?? this.showTail,
imageFilter: imageFilter ?? this.imageFilter,
showPulse: showPulse ?? this.showPulse,
);
}