getIndex method

dynamic getIndex(
  1. dynamic materialName
)

Implementation

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