Map findValue({required List list, required int value}) { return list.firstWhere((element) => element['value'] == value, orElse: () => {}); }