fp_state_generator 0.0.21
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_generatorThis 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.21Alternatively, 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';