findOneLocal method
Finds model of type T
by key
in local storage.
Implementation
T? findOneLocal(String? key) {
if (key == null) return null;
return findManyLocal([key]).safeFirst;
}
Finds model of type T
by key
in local storage.
T? findOneLocal(String? key) {
if (key == null) return null;
return findManyLocal([key]).safeFirst;
}