remove_null_from_list 0.1.0

Dart native js
Flutter Android iOS web

An extension method for the List class that removes all null values from the list.

remove_null_from_list #

An extension method for the List class that removes all null values from the list.

Usage #

import 'package:remove_null_from_list/remove_null_from_list.dart';

Importing remove_null_from_list adds a single extension method to the [List] class called [removeNull], which removes all null values from the calling list.

final List<String> myList = <String>['a', 'b', null, 'd', null, 'f', 'g'];

myList.removeNull();

print(myList); // ['a', 'b', 'd', 'f', 'g']
1
likes
100
pub points
29%
popularity

Publisher

jamesalex.dev

An extension method for the List class that removes all null values from the list.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

More

Packages that depend on remove_null_from_list