Globals class

Constructors

Globals.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

context BuildContext?
getter/setter pair
storage ↔ FlutterSecureStorage
getter/setter pair

Static Methods

bind(dynamic obj) → dynamic
clear() → void
clearWithout(List keys) → void
create(dynamic key, dynamic value) GlobalReference
dispose(dynamic obj) → dynamic
free(dynamic key) Future<bool>
freeStore<T extends Object>(List keys) Future<void>
fromStore<T extends Object>(dynamic key) Future<T?>
get(dynamic key) → dynamic
getAs<T extends Object>(dynamic key) → T?
getBind(dynamic obj) → dynamic
loadEnv([String path = ".env"]) Future<void>
loadStore<T extends Object>(List keys) Future<void>
lock(dynamic key) → void
make(dynamic key, dynamic maker(dynamic)) GlobalReference
set(dynamic key, dynamic value) GlobalReference
setContext(BuildContext context) → void
show(Widget widget) → void
store(dynamic key, dynamic value) Future<void>
toNamed(String name) → void
unlock(dynamic key) → void
use(dynamic key) GlobalReference