getIndex method

dynamic getIndex(
  1. dynamic materialName
)

Implementation

getIndex(materialName) {
  return this.nameLookup[materialName];
}