inline_assets 0.1.2 copy "inline_assets: ^0.1.2" to clipboard
inline_assets: ^0.1.2 copied to clipboard

Dart 1 only

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';
0
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Transformer that inlines asset file contents as strings in Dart source code.

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

barback, code_transformers, source_span

More

Packages that depend on inline_assets