getSpecieByCodeSpecie method
- String codeSpecie
Implementation
Future<Map<String, dynamic>?> getSpecieByCodeSpecie(String codeSpecie) async {
final db = await database;
final result = await db.query(
'species',
where: 'code_specie = ?',
whereArgs: [codeSpecie],
limit: 1,
);
return result.isNotEmpty ? result.first : null;
}