nmap 1.0.0 copy "nmap: ^1.0.0" to clipboard
nmap: ^1.0.0 copied to clipboard

A dart package that provides null map operation extension.

example/nmap_example.dart

import "package:nmap/nmap.dart";

void main() {
  final int? a = null;
  final int b = 1;

  print(a.nmap((n) => n + 1)); // null
  print(b.nmap((n) => n + 1)); // 2
}
1
likes
150
points
20
downloads

Publisher

verified publishergruvw.com

Weekly Downloads

A dart package that provides null map operation extension.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

More

Packages that depend on nmap