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

SDKDart
outdated

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.1.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/domain/class.dart';
import 'package:class_fields/domain/field.dart';
import 'package:class_fields/domain/settings.dart';
import 'package:class_fields/fields.dart';
import 'package:class_fields/templates/fields_template.dart';
import 'package:class_fields/templates/template.dart';
import 'package:class_fields/util/string_buffer_ext.dart';
0
likes
110
pub points
0%
popularity

Publisher

verified publishermrgnhnt.com

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, build_config, class_fields_annotation, meta, source_gen, source_helper

More

Packages that depend on class_fields