mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 05:32:26 +08:00
CheckBox and Filtering
This commit is contained in:
@ -109,3 +109,11 @@ Uint8List jsonMapToBytes(Map<String, dynamic>? map) {
|
||||
return bytes;
|
||||
}
|
||||
}
|
||||
|
||||
List<NameValueModel> getEnabledRows(
|
||||
List<NameValueModel>? rows, List<bool>? enabledList) {
|
||||
if (rows == null || enabledList == null) {
|
||||
return rows ?? [];
|
||||
}
|
||||
return rows.where((element) => enabledList[rows.indexOf(element)]).toList();
|
||||
}
|
||||
|
Reference in New Issue
Block a user