onTaskComplete method

void onTaskComplete(
  1. String taskId,
  2. dynamic result
)

任务执行完成

Implementation

void onTaskComplete(String taskId, dynamic result) {
  final ctx = getContext(taskId);
  if (ctx != null) {
    ctx.markCompleted(result);
    _scheduleProgressUpdate();
  }
}