taskStateConverterWindows function

TaskState taskStateConverterWindows(
  1. TaskState state
)

Implementation

models.TaskState taskStateConverterWindows(firebase_dart.TaskState state) {
  if (state == firebase_dart.TaskState.paused) {
    return models.TaskState.paused;
  } else if (state == firebase_dart.TaskState.running) {
    return models.TaskState.running;
  } else if (state == firebase_dart.TaskState.success) {
    return models.TaskState.success;
  } else if (state == firebase_dart.TaskState.canceled) {
    return models.TaskState.canceled;
  } else {
    return models.TaskState.error;
  }
}