MeshPhongMaterial constructor

MeshPhongMaterial([
  1. Map<MaterialProperty, dynamic>? parameters
])

parameters - (optional) an object with one or more properties defining the material's appearance. Any property of the material (including any property inherited from Material) can be passed in here.

The exception is the property color, which can be passed in as a hexadecimal int and is 0xffffff (white) by default. Color is called internally.

Implementation

MeshPhongMaterial([Map<MaterialProperty, dynamic>? parameters]) : super() {
  _init();
  setValues(parameters);
}