copyWith method
BubbleLabelContent
copyWith({
- Color? bubbleColor,
- double? floatingVerticalPadding,
- Widget? child,
- double? backgroundOverlayLayerOpacity,
- bool? shouldActiveOnLongPressOnAllPlatforms,
- String? id,
- Offset? positionOverride,
- bool? shouldIgnorePointer,
- void onTapInside(
- TapDownDetails event
- void onTapOutside(
- TapDownDetails event
Returns a copy of this BubbleLabelContent with the given fields
replaced by new values. Any parameter that is null will preserve
the original value from the current instance.
Implementation
BubbleLabelContent copyWith({
Color? bubbleColor,
double? floatingVerticalPadding,
Widget? child,
double? backgroundOverlayLayerOpacity,
bool? shouldActiveOnLongPressOnAllPlatforms,
String? id,
Offset? positionOverride,
bool? shouldIgnorePointer,
void Function(TapDownDetails event)? onTapInside,
void Function(TapDownDetails event)? onTapOutside,
}) {
return BubbleLabelContent._internal(
id: id ?? this.id,
bubbleColor: bubbleColor ?? this.bubbleColor,
verticalPadding: floatingVerticalPadding ?? this.floatingVerticalPadding,
child: child ?? this.child,
backgroundOverlayLayerOpacity:
backgroundOverlayLayerOpacity ?? this.backgroundOverlayLayerOpacity,
shouldActivateOnLongPressOnAllPlatforms:
shouldActiveOnLongPressOnAllPlatforms ??
shouldActivateOnLongPressOnAllPlatforms,
childWidgetRenderBox: _childWidgetRenderBox,
positionOverride: positionOverride ?? this.positionOverride,
dismissOnBackgroundTap: dismissOnBackgroundTap,
shouldIgnorePointer: shouldIgnorePointer ?? this.shouldIgnorePointer,
onTapInside: onTapInside ?? this.onTapInside,
onTapOutside: onTapOutside ?? this.onTapOutside,
);
}