copyWith method
BarTouchData
copyWith({
- bool? enabled,
- BaseTouchCallback<
BarTouchResponse> ? touchCallback, - MouseCursorResolver<
BarTouchResponse> ? mouseCursorResolver, - Duration? longPressDuration,
- BarTouchTooltipData? touchTooltipData,
- EdgeInsets? touchExtraThreshold,
- bool? allowTouchBarBackDraw,
- bool? handleBuiltInTouches,
Copies current BarTouchData to a new BarTouchData, and replaces provided values.
Implementation
BarTouchData copyWith({
bool? enabled,
BaseTouchCallback<BarTouchResponse>? touchCallback,
MouseCursorResolver<BarTouchResponse>? mouseCursorResolver,
Duration? longPressDuration,
BarTouchTooltipData? touchTooltipData,
EdgeInsets? touchExtraThreshold,
bool? allowTouchBarBackDraw,
bool? handleBuiltInTouches,
}) {
return BarTouchData(
enabled: enabled ?? this.enabled,
touchCallback: touchCallback ?? this.touchCallback,
mouseCursorResolver: mouseCursorResolver ?? this.mouseCursorResolver,
longPressDuration: longPressDuration ?? this.longPressDuration,
touchTooltipData: touchTooltipData ?? this.touchTooltipData,
touchExtraThreshold: touchExtraThreshold ?? this.touchExtraThreshold,
allowTouchBarBackDraw:
allowTouchBarBackDraw ?? this.allowTouchBarBackDraw,
handleBuiltInTouches: handleBuiltInTouches ?? this.handleBuiltInTouches,
);
}