title: Reading a resource from a file in a Flutter test
body: <p>I want to read a file with some test data from within a Flutter unit test. Is there a recommended way of doing this? I tried the <a href="https://pub.dev/packages/resource" rel="nofollow noreferrer">resource</a> package, but that throws an error:</p>
  
  <pre><code>dart:isolate                              Isolate.resolvePackageUri
  package:resource/src/resolve.dart 11:20   resolveUri
  package:resource/src/resource.dart 74:21  Resource.readAsString
  
  Unsupported operation: Isolate.resolvePackageUri
  </code></pre>