fromName static method

Characters fromName(
  1. String name
)

Implementation

static Characters fromName(String name) {
  for (var character in Characters.values) {
    if (character.character.charactername == name) {
      return character;
    }
  }
  return Characters.None;
}