CacheUtility class Null safety

Cache Utility is a Utility that lets you retrieve Entities (from the cache) from outside of the nyxx project. Typically used in nyxx.* projects. An example getting a user is below:

void main() {
    var bot = Nyxx("TOKEN");
    Cacheable<Snowflake, User> cachedUser = CacheUtility.users(bot, Snowflake(''));
}

Constructors

CacheUtility()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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 Methods

createCacheableChannel(Nyxx client, Snowflake id) Cacheable<Snowflake, IChannel>
Retrieves a cached IChannel. Can be cast. [...]
createCacheableDMChannel(Nyxx client, Snowflake id) Cacheable<Snowflake, DMChannel>
Retrieves a cached DMChannel. [...]
createCacheableGuild(Nyxx client, Snowflake id) Cacheable<Snowflake, Guild>
Retrieves a cached Guild. [...]
createCacheableMember(Nyxx client, Snowflake id, Cacheable<Snowflake, Guild> guild) Cacheable<Snowflake, Member>
Retrieves a cached Guild Member. [...]
createCacheableMessage(Nyxx client, Snowflake id, Cacheable<Snowflake, TextChannel> channel) Cacheable<Snowflake, Message>
Retrieves a cached Guild Message. [...]
createCacheableRole(Nyxx client, Snowflake id, Cacheable<Snowflake, Guild> guild) Cacheable<Snowflake, Role>
Retrieves a cached Role. [...]
createCacheableTextChannel(Nyxx client, Snowflake id) Cacheable<Snowflake, TextChannel>
Retrieves a cached TextChannel. [...]
createCacheableUser(Nyxx client, Snowflake id) Cacheable<Snowflake, User>
Retrieves a cached User. [...]
createCacheableVoiceChannel(Nyxx client, Snowflake id) Cacheable<Snowflake, VoiceGuildChannel>
Retrieves a cached VoiceChannel. [...]