inline_assets 0.1.2 inline_assets: ^0.1.2 copied to clipboard
Transformer that inlines asset file contents as strings in Dart source code.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add inline_assets
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
inline_assets: ^0.1.2
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:inline_assets/inline_assets.dart';