copyWith method

  1. @override
NesTooltipTheme copyWith({
  1. Color? background,
  2. Color? textColor,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
NesTooltipTheme copyWith({
  Color? background,
  Color? textColor,
}) {
  return NesTooltipTheme(
    background: background ?? this.background,
    textColor: textColor ?? this.textColor,
  );
}