getStatus function

dynamic getStatus(
  1. int statusValue
)

Implementation

getStatus(int statusValue) {
  if (statusValue == 0) {
    return "fixed";
  } else if (statusValue == 1) {
    return "unfixed";
  }
  return "Unknown";
}