nmap 1.0.0 nmap: ^1.0.0 copied to clipboard
A dart package that provides null map operation extension.
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
}