builtInModelExtensions top-level constant

Map<String, ModelFormat> const builtInModelExtensions

Every file suffix a built-in reader answers to, and which reader.

Read by recognizedModelFormat and by flutter3d_build's converter, which walks a directory for the files it can convert — two readers of one list, where there used to be two lists.

Implementation

const Map<String, ModelFormat> builtInModelExtensions = <String, ModelFormat>{
  '.f3d': ModelFormat.f3d,
  '.obj': ModelFormat.obj,
  '.stl': ModelFormat.stl,
  '.gltf': ModelFormat.gltf,
  '.glb': ModelFormat.gltf,
};