Callback constructor

Callback({
  1. required void onTaskFinished(),
})

Implementation

factory Callback({required void Function() onTaskFinished}) {
  return CallbackImpl(
    onTaskFinished: onTaskFinished,
  );
}