MessageCachePolicy class Null safety

Inheritance

Constructors

MessageCachePolicy(CachePolicyPredicate<IMessage> predicate)
Constructor

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

and(CachePolicy<IMessage> other) CachePolicy<IMessage>
Convenience method to require other policy
inherited
canCache(IMessage entity) bool
Pure function which will decide based on given predicate if entity will be cached
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
or(CachePolicy<IMessage> other) CachePolicy<IMessage>
Convenience method to concatenate other policy
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

all CachePolicy<IMessage>
Cache all messages
final
def CachePolicy<IMessage>
Default policy is all
final
dmMessages CachePolicy<IMessage>
Cache only dm messages
final
guildMessages CachePolicy<IMessage>
Cache only guild messages
final
none CachePolicy<IMessage>
Do not any messages
final