avoid_non_null_assertion_operator 1.4.0 copy "avoid_non_null_assertion_operator: ^1.4.0" to clipboard
avoid_non_null_assertion_operator: ^1.4.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_operator

This 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.4.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:avoid_non_null_assertion_operator/avoid_non_null_assertion_operator.dart';
0
likes
0
points
1.18k
downloads

Publisher

unverified uploader

Weekly Downloads

A custom lint package to forbid the non-null assertion operator (!).

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

analyzer, custom_lint, custom_lint_builder

More

Packages that depend on avoid_non_null_assertion_operator