16 lines
333 B
Dart
16 lines
333 B
Dart
import 'package:didvan/models/enums.dart';
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
class CoreProvier with ChangeNotifier {
|
|
AppState _appState = AppState.idle;
|
|
|
|
set appState(AppState newState) {
|
|
_appState = newState;
|
|
notifyListeners();
|
|
}
|
|
|
|
void update() => notifyListeners();
|
|
|
|
AppState get appState => _appState;
|
|
}
|