copyWith method

MacosTooltipThemeData copyWith({
  1. Decoration? decoration,
  2. double? height,
  3. EdgeInsetsGeometry? margin,
  4. EdgeInsetsGeometry? padding,
  5. bool? preferBelow,
  6. Duration? showDuration,
  7. TextStyle? textStyle,
  8. double? verticalOffset,
  9. Duration? waitDuration,
})

Copies this MacosTooltipThemeData into another.

Implementation

MacosTooltipThemeData copyWith({
  Decoration? decoration,
  double? height,
  EdgeInsetsGeometry? margin,
  EdgeInsetsGeometry? padding,
  bool? preferBelow,
  Duration? showDuration,
  TextStyle? textStyle,
  double? verticalOffset,
  Duration? waitDuration,
}) {
  return MacosTooltipThemeData(
    decoration: decoration ?? this.decoration,
    height: height ?? this.height,
    margin: margin ?? this.margin,
    padding: padding ?? this.padding,
    preferBelow: preferBelow ?? this.preferBelow,
    showDuration: showDuration ?? this.showDuration,
    textStyle: textStyle ?? this.textStyle,
    verticalOffset: verticalOffset ?? this.verticalOffset,
    waitDuration: waitDuration ?? this.waitDuration,
  );
}