init method

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

Initializes the database.

Implementation

@override
Future<bool> init() async {
  if (!isInitialized) {
    if (!isTest) await Hive.initFlutter();

    isInitialized = true;
  }

  return isInitialized;
}