You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
- const EMPTY = "";
- const ZERO = 0;
-
- extension NonNullString on String{
- String orEmpty(){
- if(this == null){
- return EMPTY;
- } else {
- return this;
- }
- }
- }
-
-
- extension NonNullInt on int{
- int orEmpty(){
- if(this == null){
- return ZERO;
- } else {
- return this;
- }
- }
- }
|