fromKey static method

StatusFace? fromKey(
  1. String key
)

Implementation

static StatusFace? fromKey(String key) {
  return StatusFace.values.firstWhere(
        (e) => e.key == key,
    orElse: () => StatusFace.notRecognize, // fallback nếu không khớp
  );
}