get method
Implementation
@override
Future<Response<T>> get({required String id}) async {
final response = await gets();
final list = response.result ?? [];
for (int index = 0; index < list.length; index++) {
final x = list[index];
if (Validator.equals(id, x.id)) {
return response.copy(data: x);
}
}
return response.copy(error: "Data not found!");
}