findByEmail method
- {required String email}
Get user by email
Implementation
Future<UserModel?> findByEmail({
required String email,
}) async {
try {
return await (_db.select(_db.users)
..where((tbl) => tbl.email.equals(email)))
.getSingle();
} catch (e) {
return null;
}
}