remove_null_from_list 0.1.0 remove_null_from_list: ^0.1.0 copied to clipboard
An extension method for the List class that removes all null values from the list.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add remove_null_from_list
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
remove_null_from_list: ^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:remove_null_from_list/remove_null_from_list.dart';