Companion

object Companion

Companion object to provide a singleton instance of the NoteDatabase. This ensures that only one instance of the database is created throughout the application's lifecycle, which is important for performance and data consistency.

Functions

Link copied to clipboard

Gets the singleton instance of the NoteDatabase. If the instance doesn't exist, it creates one in a thread-safe manner.