getModelFilePath static method

Future<String> getModelFilePath(
  1. String filename
)

Gets the full file path for a model file.

Delegates to FileSystemService.getTargetPath so that the correct storage directory is used on every platform (Android/iOS: Documents; desktop: Application Support/flutter_gemma/; legacy Desktop: Documents fallback with a debug-print nudge to re-install).

Implementation

static Future<String> getModelFilePath(String filename) async {
  return ServiceRegistry.instance.fileSystemService.getTargetPath(filename);
}