init method

  1. @override
  2. @protected
Future<bool> init()
override

Initializes the database.

Implementation

@override
@protected
Future<bool> init() async {
  if (!isInitialized) {
    Hive.init(_path);
    isInitialized = true;
  }

  return isInitialized;
}