loadModel abstract method

Future<void> loadModel({
  1. String? modelPath,
  2. String? modelUrl,
  3. required Map<String, ByteData> resources,
  4. List<String>? preselectedEntities,
  5. List<double>? selectionColor,
  6. List<PatchColor>? patchColors,
})

Method to load the model from assets or network. resources is empty for .glb models and populated for .gltf models.

Implementation

Future<void> loadModel({
  String? modelPath,
  String? modelUrl,
  required Map<String, ByteData> resources,
  List<String>? preselectedEntities,
  List<double>? selectionColor,
  List<PatchColor>? patchColors, // Add patchColors
});