getGroupIfExistsFromList static method
PlutoColumnGroup?
getGroupIfExistsFromList({
- required String field,
- required List<
PlutoColumnGroup> columnGroupList,
Finds PlutoColumnGroup with field
in columnGroupList
and returns it.
Returns null
if not found.
Implementation
static PlutoColumnGroup? getGroupIfExistsFromList({
required String field,
required List<PlutoColumnGroup> columnGroupList,
}) {
for (int i = 0; i < columnGroupList.length; i += 1) {
if (exists(field: field, columnGroup: columnGroupList[i])) {
return columnGroupList[i];
}
}
return null;
}