currentMaterial method

ParseStateMaterial? currentMaterial()

Implementation

ParseStateMaterial? currentMaterial() {
  if (materials.isNotEmpty) {
    return materials[materials.length - 1];
  }

  return null;
}