AppModel class

Global model for app

Inheritance

Constructors

AppModel()

Properties

hashCode int
The hash code for this object.
no setterinherited
isLogin bool
Get bool is user
no setter
listenerCount int
Returns the number of listeners listening to this model.
no setterinherited
locale AppLocale
Get enum locale
no setter
platformLocale Locale
Get platform locale
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service AuthService
Get service auth
final

Methods

addListener(VoidCallback listener) → void
listener will be invoked when the model changes.
inherited
login() → void
Login user
logout() → void
Logout user
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
Should be called only by Model when the model has changed.
inherited
removeListener(VoidCallback listener) → void
listener will no longer be invoked when the model changes.
inherited
toggleLocale() → void
Change locale
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

checkIsLogin bool
Static check has cookie login
no setter

Static Methods

of(BuildContext context) AppModel
Get ScopedModel