resolveURL static method

Future<String?> resolveURL(
  1. String name, {
  2. String? extension,
})

Resolves an URL for a resource. The equivalent would be: [[NSBundle mainBundle] URLForResource:name withExtension:ext].

Returns null if the resource can't be found.

See https://developer.apple.com/documentation/foundation/nsbundle/1411540-urlforresource?language=objc

Implementation

static Future<String?> resolveURL(String name, {String? extension}) {
  return _hostApi.resolveUrl(name, extension);
}