fluent_gen 0.1.0-dev.0
fluent_gen: ^0.1.0-dev.0 copied to clipboard
Typed Dart calls for fluent_bundle — reads your .ftl files at build time and generates methods, so misspelled names and wrong arguments fail to compile. Dev-dependency only.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add fluent_genThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
fluent_gen: ^0.1.0-dev.0Alternatively, 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:fluent_gen/builder.dart';
import 'package:fluent_gen/testing.dart';