DatabaseService constructor

DatabaseService()

Gets the singleton instance of the database service.

This ensures only one database connection exists throughout the app lifecycle, improving performance and preventing connection conflicts.

Example:

final dbService = DatabaseService();
final species = await dbService.getAllMosquitoSpecies('en');

Implementation

factory DatabaseService() => _instance;