nullable 1.0.0

Dart native js
Flutter Android iOS web

Nullable extension on functions

Nullable extension on functions #

This extension introduces the nullable version of functions. The nullable version returns null on null input and calls the underlying function otherwise.

void main() {
  int.parse('12'); // 12
  int.parse(null); // Error: Invalid argument
  int.parse.nullable('12'); // 12
  int.parse.nullable(null); // null
}
5
likes
80
pub points
35%
popularity

Nullable extension on functions

Homepage

Documentation

API reference

Uploader

shindakioku@gmail.com

License

MIT (LICENSE)

More

Packages that depend on nullable