validateListNotEmpty<T> static method
Validate that a list is not empty
Implementation
static void validateListNotEmpty<T>(List<T> list, String paramName) {
if (list.isEmpty) {
throw ArgumentError('$paramName cannot be empty');
}
}