Resources class

Container for global singleton resources.

Resources are stored by type and can be accessed using get, getOrInsert, or through Res and ResMut wrappers in systems.

Constructors

Resources()

Properties

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

Methods

clear() → void
Clears all resources.
contains<T>() bool
Returns true if a resource of type T exists.
get<T>() → T?
Gets a resource of type T.
getOrInsert<T>(T defaultValue()) → T
Gets a resource of type T, inserting a default if it doesn't exist.
insert<T>(T resource) → void
Inserts a resource of type T.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
remove<T>() → T?
Removes a resource of type T.
toString() String
A string representation of this object.
inherited

Operators

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