getScientificNameByCode method
- String codEspecie
Implementation
Future<String?> getScientificNameByCode(String codEspecie) async {
final db = await database;
final results = await db.query(
'species',
columns: ['scientificName'],
where: 'code_specie = ?',
whereArgs: [codEspecie],
);
return results.isNotEmpty
? results.first['scientificName'] as String
: null;
}