class_fields 0.2.0 copy "class_fields: ^0.2.0" to clipboard
class_fields: ^0.2.0 copied to clipboard

Generate all field names as Strings to use within Maps, serialization, etc.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add class_fields

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

dependencies:
  class_fields: ^0.2.0

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:class_fields/class_fields.dart';
0
likes
130
points
65
downloads

Publisher

verified publishermrgnhnt.com

Weekly Downloads

Generate all field names as Strings to use within Maps, serialization, etc.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analyzer, build, class_fields_annotation, meta, source_gen

More

Packages that depend on class_fields