Skip to content

fpdart/nullable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages