MaterialResource constructor

MaterialResource(
  1. LocalId id, {
  2. required String type,
  3. Map<String, PropertyValue>? properties,
  4. AssetRef? asset,
})

Creates a material of the given type.

Implementation

MaterialResource(
  super.id, {
  required this.type,
  Map<String, PropertyValue>? properties,
  this.asset,
}) : properties = properties ?? {};