demo_hive/lib/list_extensions.dart

12 lines
236 B
Dart
Raw Permalink Normal View History

2021-06-28 11:01:00 +00:00
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;
}
}