import 'package:tangheem/models/surah_model.dart'; import 'package:tangheem/models/authentication_user_model.dart'; class AppState { static final AppState _instance = AppState._internal(); AppState._internal(); factory AppState() => _instance; SurahModel _surahModel; SurahModel get getSurahModel => _surahModel; void setSurahModel(SurahModel _surahModel) { this._surahModel = _surahModel; } AuthenticationUserModel _authenticationUser; bool get isUserLogin => _authenticationUser != null; String get token => _authenticationUser?.result?.data?.token; void setAuthenticationModel(AuthenticationUserModel _authenticationUser) { this._authenticationUser = _authenticationUser; } }