getContext method

TaskExecutionContext? getContext(
  1. String taskId
)

获取任务上下文

Implementation

TaskExecutionContext? getContext(String taskId) {
  return _contexts.where((c) => c.taskId == taskId).firstOrNull;
}