Spoken<T extends BusEvent> class final

One row of a SpokenEvents table: an event type, and what is said when one arrives.

say answers null for an event of the type that is not worth a sentence — a scratch, a door that was already open — so one row can cover a type and still be choosy about it.

Constructors

Spoken(String? say(T event))
A row for events of type T, put into words by say.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
say → String? Function(T event)
The sentence for one event, or null to say nothing for it.
final

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