getAsArray method

dynamic getAsArray()

Implementation

getAsArray() async {
  var index = 0;

  for (var mn in materialsInfo.keys) {
    materialsArray[index] = await create(mn);
    nameLookup[mn] = index;
    index++;
  }

  return materialsArray;
}