PotEvent class
A class that represents an event related to Pot.
Constructors
-
PotEvent({required int number, required PotEventKind kind, required DateTime time, required int currentScope, required List<
PotDescription> potDescriptions}) -
Creates a PotEvent that represents an event related to Pot.
const
-
PotEvent.fromMap(Map<
String, Object?> map) -
Creates a PotEvent from a Map.
factory
Properties
- currentScope → int
-
The number of the scope as of when the event occurred.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → PotEventKind
-
The kind of the event.
final
- number → int
-
A sequence number.
final
-
potDescriptions
→ List<
PotDescription> -
The details of the pot where the event occurred.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → DateTime
-
The time when the event occurred.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, Object?> - Converts a PotEvent to a Map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited