resource
resource copied to clipboard
Resource loading library.
It seems that resource depends on `Isolate.resolvePackageUri()` which at least for me does not seem to work at all on Windows, at least I receive `null` for any URI that...
`Resource.readAsBytes()` and friends throw different exceptions depending on which platform is being used. Given that `dart:io` and `dart:html` are generally mutually exclusive, there's no way to safely type-test thrown exceptions...
Dart has a [snapshot mechanism](https://github.com/dart-lang/sdk/wiki/Snapshots) to bundle all resources in one file. Is there a way to read file content from snapshot?
Just simply trying to read a relative file in the same directory but I need it synchronously as it's outside the main function.
In dart 2.0, dart:isolate is no longer supported (see https://github.com/dart-lang/sdk/issues/30538) on web. The `resolve` package uses `Isolate.resolvePackageUri` and therefore support for web is broken. Although dart2js and dartdevc do not...
Running the simple test below in dartium gives `Unsupported scheme` error. Not an expert but it seems the `:` is unwillingly encoded? ``` test("broken http scheme", () async { var...