FlutterGemmaModelManager constructor

FlutterGemmaModelManager({
  1. String? huggingFaceToken,
  2. int maxDownloadRetries = 10,
})

Implementation

FlutterGemmaModelManager({
  this.huggingFaceToken,
  this.maxDownloadRetries = 10,
}) {
  if (maxDownloadRetries < 1) {
    throw ArgumentError.value(
      maxDownloadRetries,
      'maxDownloadRetries',
      'must be positive',
    );
  }
}