isFood method
Implementation
@override
Future<bool> isFood(String details) async {
var res = await _get(
"/orders/productinfo", {"details": details, "type": "verification"});
if (res == null) {
return false;
}
Map<String, dynamic> response = jsonDecode(res.body);
try {
bool completion = response['verification'];
return completion;
} catch (error) {
print(error.toString());
return false;
}
}