app/lib/common/utils/provider.dart

13 lines
416 B
Dart
Raw Normal View History

2024-03-09 19:42:57 +08:00
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:hive/hive.dart';
2024-03-09 19:42:57 +08:00
import 'package:starcitizen_doctor/app.dart';
extension ProviderExtension on AutoDisposeNotifier {
AppGlobalModel get appGlobalModel =>
ref.read(appGlobalModelProvider.notifier);
AppGlobalState get appGlobalState => ref.read(appGlobalModelProvider);
Box<dynamic>? get appConfBox => appGlobalState.appConfBox;
2024-03-09 19:42:57 +08:00
}