getAtombyName static method

TextureAtom getAtombyName(
  1. String name
)

Implementation

static TextureAtom getAtombyName(String name) {
  try {
    return graphickAtoms.entries
        .firstWhere((element) => element.key == name)
        .value;
  } catch (e) {
    log('missing atom: $name');
    return TextureAtom(0, 0, 0, 0, '', 0, 0, len: 1, hgt: 1);
  }
}