fromInt static method

Card? fromInt(
  1. int v
)

Create one from integer value

Implementation

static Card? fromInt(int v) {
  if (v < 1 || v > 63) return null;
  return Card.values[v];
}