copyWith method

CustomCallbacks copyWith({
  1. void onLongPressStartedCallback(
    1. MeeduPlayerController controller
    )?,
  2. void onLongPressEndedCallback(
    1. MeeduPlayerController controller
    )?,
})

Implementation

CustomCallbacks copyWith({
  void Function(MeeduPlayerController controller)? onLongPressStartedCallback,
  void Function(MeeduPlayerController controller)? onLongPressEndedCallback,
}) {
  return CustomCallbacks(
    onLongPressStartedCallback:
        onLongPressStartedCallback ?? this.onLongPressStartedCallback,
    onLongPressEndedCallback:
        onLongPressEndedCallback ?? this.onLongPressEndedCallback,
  );
}