getAsArray method

dynamic getAsArray()

Implementation

getAsArray() async {
  var index = 0;

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

  return this.materialsArray;
}