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,
  7. bool enableCache = false,
  8. List<double>? cacheColor,
  9. bool clearSelectionsOnHighlight = false,
  10. List<SequenceConfig>? selectionSequence,
})

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
  bool enableCache = false,
  List<double>? cacheColor,
  bool clearSelectionsOnHighlight = false,
  final List<SequenceConfig>? selectionSequence
});