getValue method

Vector3 getValue(
  1. Object? key
)

Implementation

Vector3 getValue(Object? key) {
  if (key == "a") {
    return a;
  } else if (key == "b") {
    return b;
  } else if (key == "c") {
    return c;
  } else {
    throw ("Triangle getValue key: $key not support .....");
  }
}