CurfewTriggeredEvent class

Event fired when curfew time is reached.

Only fired when curfew is enabled (GameTime.hasCurfew is true). Games can respond to this event by triggering sleep sequences, penalties, or other consequences.

Constructors

CurfewTriggeredEvent({required int hour, required int curfewHour})
const

Properties

curfewHour int
The configured curfew hour.
final
hashCode int
The hash code for this object.
no setterinherited
hour int
The current hour when curfew was triggered.
final
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