fix: review changes

This commit is contained in:
DenserMeerkat
2023-12-22 20:25:26 +05:30
parent aceb4c9b01
commit 06f8cd7f02
14 changed files with 104 additions and 110 deletions

View File

@ -111,11 +111,11 @@ Uint8List jsonMapToBytes(Map<String, dynamic>? map) {
}
List<NameValueModel>? getEnabledRows(
List<NameValueModel>? rows, List<bool>? enabledList) {
if (rows == null || enabledList == null) {
List<NameValueModel>? rows, List<bool>? isRowEnabledList) {
if (rows == null || isRowEnabledList == null) {
return rows;
}
List<NameValueModel> finalRows =
rows.where((element) => enabledList[rows.indexOf(element)]).toList();
rows.where((element) => isRowEnabledList[rows.indexOf(element)]).toList();
return finalRows == [] ? null : finalRows;
}