INNER CODE UNIT · Dart

_DebugMonitorWindowState

notFaad/coom-dl · lib/debug_window_main.dart:32

class _DebugMonitorWindowState extends State<DebugMonitorWindow> {
  bool _hiveInitialized = false;

  @override
  void initState() {
    super.initState();
    _initHive();
  }

  Future<void> _initHive() async {
    if (!Hive.isAdapterRegistered(0)) {
      try {
        final appDocumentDir = await getApplicationDocumentsDirectory();
        final hiveDir = Directory('${appDocumentDir.path}/hive_db');
        if (!await hiveDir.exists()) {
          await hiveDir.create(recursive: true);
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…