copyWith method

TooltipThemeData copyWith({
  1. @Deprecated('Use TooltipThemeData.constraints instead. ' 'This feature was deprecated after v3.30.0-0.1.pre.') double? height,
  2. BoxConstraints? constraints,
  3. EdgeInsetsGeometry? padding,
  4. EdgeInsetsGeometry? margin,
  5. double? verticalOffset,
  6. bool? preferBelow,
  7. bool? excludeFromSemantics,
  8. Decoration? decoration,
  9. TextStyle? textStyle,
  10. TextAlign? textAlign,
  11. Duration? waitDuration,
  12. Duration? showDuration,
  13. Duration? exitDuration,
  14. TooltipTriggerMode? triggerMode,
  15. bool? enableFeedback,
})

Creates a copy of this object but with the given fields replaced with the new values.

Implementation

TooltipThemeData copyWith({
  @Deprecated(
    'Use TooltipThemeData.constraints instead. '
    'This feature was deprecated after v3.30.0-0.1.pre.',
  )
  double? height,
  BoxConstraints? constraints,
  EdgeInsetsGeometry? padding,
  EdgeInsetsGeometry? margin,
  double? verticalOffset,
  bool? preferBelow,
  bool? excludeFromSemantics,
  Decoration? decoration,
  TextStyle? textStyle,
  TextAlign? textAlign,
  Duration? waitDuration,
  Duration? showDuration,
  Duration? exitDuration,
  TooltipTriggerMode? triggerMode,
  bool? enableFeedback,
}) {
  return TooltipThemeData(
    height: height ?? this.height,
    constraints: constraints ?? this.constraints,
    padding: padding ?? this.padding,
    margin: margin ?? this.margin,
    verticalOffset: verticalOffset ?? this.verticalOffset,
    preferBelow: preferBelow ?? this.preferBelow,
    excludeFromSemantics: excludeFromSemantics ?? this.excludeFromSemantics,
    decoration: decoration ?? this.decoration,
    textStyle: textStyle ?? this.textStyle,
    textAlign: textAlign ?? this.textAlign,
    waitDuration: waitDuration ?? this.waitDuration,
    showDuration: showDuration ?? this.showDuration,
    triggerMode: triggerMode ?? this.triggerMode,
    enableFeedback: enableFeedback ?? this.enableFeedback,
  );
}