fetch method Null safety
Implementation
Future fetch() async {
try {
_queries['limit'] = 1;
var res = await fetchAll();
if (res.length == 0) return null;
return res[0];
} catch (e) {
throw e;
}
}
Future fetch() async {
try {
_queries['limit'] = 1;
var res = await fetchAll();
if (res.length == 0) return null;
return res[0];
} catch (e) {
throw e;
}
}