removeLastEmpty method
Removes the last empty value/s of a List
final List<String> list = <String>['', '', ''];
list.removeLastEmpty(); // returns <String>[]
Implementation
List<String> removeLastEmpty() {
final List<String> list_ = List<String>.from(this);
while (isNotEmpty && list_.last.isEmpty) {
list_.removeLast();
}
return list_;
}