getBundledResourcePath abstract method

Future<String> getBundledResourcePath(
  1. String resourceName
)

Gets the path to a bundled native resource

This is platform-specific:

  • Android: assets/models/{resourceName}
  • iOS: Bundle.main.path(forResource:)
  • Web: /assets/{resourceName}

Throws:

  • UnsupportedError if bundled resources not supported
  • FileSystemException if resource not found

Implementation

Future<String> getBundledResourcePath(String resourceName);