avoid_non_null_assertion_operator 1.1.0
avoid_non_null_assertion_operator: ^1.1.0 copied to clipboard
A custom lint package to forbid the non-null assertion operator (!).
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add avoid_non_null_assertion_operatorThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
avoid_non_null_assertion_operator: ^1.1.0Alternatively, 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:avoid_non_null_assertion_operator/avoid_non_null_assertion_operator.dart';