has_is_getters 0.0.2 has_is_getters: ^0.0.2 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
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
has_is_getters: ^0.0.2
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/has_is_getters.dart';