copyWith method
Returns a copy of this FHapticFeedback with the given properties replaced.
Implementation
@useResult
FHapticFeedback copyWith({
Future<void> Function()? heavyImpact,
Future<void> Function()? lightImpact,
Future<void> Function()? mediumImpact,
Future<void> Function()? selectionClick,
Future<void> Function()? successNotification,
Future<void> Function()? warningNotification,
Future<void> Function()? errorNotification,
Future<void> Function()? vibrate,
}) => FHapticFeedback(
heavyImpact: heavyImpact ?? this.heavyImpact,
lightImpact: lightImpact ?? this.lightImpact,
mediumImpact: mediumImpact ?? this.mediumImpact,
selectionClick: selectionClick ?? this.selectionClick,
successNotification: successNotification ?? this.successNotification,
warningNotification: warningNotification ?? this.warningNotification,
errorNotification: errorNotification ?? this.errorNotification,
vibrate: vibrate ?? this.vibrate,
);