has_is_getters_generator 1.1.0 has_is_getters_generator: ^1.1.0 copied to clipboard
Annotations for generating getters for checking whether a field is null or checking the value of a field.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add has_is_getters_generator
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
has_is_getters_generator: ^1.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:has_is_getters_generator/common.dart';
import 'package:has_is_getters_generator/has_getter_generator.dart';
import 'package:has_is_getters_generator/is_getters_generator.dart';