copyWith method
HintTheme
copyWith({
- Color? tooltipBackground,
- Color? tooltipForeground,
- Color? scrimColor,
- BorderRadius? tooltipRadius,
- EdgeInsets? tooltipPadding,
- TextStyle? tooltipTitleStyle,
- TextStyle? tooltipDescriptionStyle,
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,
}) {
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,
);
}