fp_state_generator 0.0.21 copy "fp_state_generator: ^0.0.21" to clipboard
fp_state_generator: ^0.0.21 copied to clipboard

The `@FpState` annotation is used in dependency with the `fp_state_generator` package to generate template code for managing state

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add fp_state_generator

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  fp_state_generator: ^0.0.21

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:fp_state_generator/builder.dart';
import 'package:fp_state_generator/fp_state_annotation.dart';
import 'package:fp_state_generator/open_state/async_state/async_state.dart';
import 'package:fp_state_generator/open_state/async_state/async_state.fpState.dart';
import 'package:fp_state_generator/open_state/result/result.dart';
import 'package:fp_state_generator/open_state/result/result.fpState.dart';
1
likes
120
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

The `@FpState` annotation is used in dependency with the `fp_state_generator` package to generate template code for managing state

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, change_case, source_gen

More

Packages that depend on fp_state_generator