ModelComponent constructor

ModelComponent({
  1. String model = '',
  2. Map<String, String>? materials,
  3. bool castShadows = true,
  4. bool visible = true,
})

A model loaded from the asset at model.

Implementation

ModelComponent({
  this.model = '',
  Map<String, String>? materials,
  this.castShadows = true,
  this.visible = true,
}) : materials = materials ?? {};