title: Flutter How to store and access files with AssetBundle
body: <p><strong><em>EDIT:</strong> This question is about using AssetBundle, while that question (<a href="https://stackoverflow.com/questions/50975636/list-of-files-in-flutter">List of files in flutter</a>) was about using Directory. They are different because of different classes. ALSO: I removed one section, that can be similar to previous question.</em></p>
  
  <p>I don't understand how to use AssetBundle for accessing files...</p>
  
  <p>For example, my assets in pubspec.yaml</p>
  
  <pre><code>assets:
  - assets/images/
  - assets/texts/
  </code></pre>
  
  <ol>
  <li><p>AssetBundle has methods: loadString(key, ...) and loadStructuredData(key, ...) - what is a key and how to use this methods?</p></li>
  <li><p>I need to load data from text files and others files. I know that there is a rootBundle (or DefaultAssetBundle.of(context))... But how to use it to load files?!</p></li>
  </ol>
  
  <p>Thanks!</p>