12 lines
236 B
Dart
12 lines
236 B
Dart
|
extension ListExtension on List{
|
||
|
bool get isSafe{
|
||
|
if(this != null && this.isNotEmpty)
|
||
|
return true;
|
||
|
return false;
|
||
|
}
|
||
|
bool get isNotSafe {
|
||
|
if (this == null || this.isEmpty)
|
||
|
return true;
|
||
|
return false;
|
||
|
}
|
||
|
}
|