ModelProvider constructor
ModelProvider(
- ImageProvider texture, {
- required Future<
ByteData> onModelRequest(), - String? modelId,
- Function? onError,
Implementation
ModelProvider(this.texture,
{required this.onModelRequest, String? modelId, Function? onError})
: modelId = modelId ?? Uuid().v4(),
_errorHandler = AsyncErrorHandler(onError);