currentMaterial method

dynamic currentMaterial()

Implementation

currentMaterial() {
  if (this.materials.length > 0) {
    return this.materials[this.materials.length - 1];
  }

  return null;
}