copyWith method

  1. @override
HintTheme copyWith({
  1. Color? tooltipBackground,
  2. Color? tooltipForeground,
  3. Color? scrimColor,
  4. BorderRadius? tooltipRadius,
  5. EdgeInsets? tooltipPadding,
  6. TextStyle? tooltipTitleStyle,
  7. 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,
  );
}