Flame class

This class holds static references to some useful objects to use in your game.

You can access shared instances of AssetsCache, Images and Device. Most games should need only one instance of each, and should use this class to manage that reference.

Constructors

Flame()

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

assets AssetsCache
Access a shared instance of AssetsCache class.
getter/setter pair
bundle AssetBundle
Flame asset bundle, defaults to the root bundle but can be globally changed.
getter/setter pair
device ↔ Device
Access a shared instance of the Device class.
getter/setter pair
images Images
Access a shared instance of the Images class.
getter/setter pair