remove_null_from_list 0.1.0 copy "remove_null_from_list: ^0.1.0" to clipboard
remove_null_from_list: ^0.1.0 copied to clipboard

discontinuedreplaced by: list_utilities

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
30
pub points
0%
popularity

Publisher

verified publisherjamesalex.dev

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

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

More

Packages that depend on remove_null_from_list