completeTask method

dynamic completeTask()

Called by computeValue when task completes.

Implementation

completeTask() {
  _isCompleted = true;
  if (onComplete != null) onComplete();
}