ModelProvider constructor

ModelProvider(
  1. ImageProvider texture, {
  2. required Future<ByteData> onModelRequest(),
  3. String? modelId,
  4. Function? onError,
})

Implementation

ModelProvider(this.texture,
    {required this.onModelRequest, String? modelId, Function? onError})
    : modelId = modelId ?? Uuid().v4(),
      _errorHandler = AsyncErrorHandler(onError);