copyWith method

CalloutStyle copyWith({
  1. Object? titleTextStyle = _unset,
  2. Object? detailTextStyle = _unset,
  3. Color? backgroundColor,
  4. Color? borderColor,
  5. double? borderRadius,
  6. double? borderWidth,
  7. EdgeInsets? contentPadding,
  8. double? minWidth,
  9. double? maxWidth,
  10. Offset? offset,
  11. bool? autoAdjustWidth,
})

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

The configurable fields are titleTextStyle, detailTextStyle, backgroundColor, borderColor, borderRadius, borderWidth, contentPadding, minWidth, maxWidth, offset, and autoAdjustWidth.

Any parameter that is omitted keeps the value from this instance.

The resulting values must still satisfy the constructor constraints. When maxWidth is provided explicitly, it must be greater than minWidth. When maxWidth is omitted, the effective maximum width is resolved from minWidth.