GeneratedEvent class abstract

Base class for generated events

Extend this in your generated code:

class OrderCreatedEvent extends GeneratedEvent {
  final String orderId;
  final double total;

  OrderCreatedEvent({
    required this.orderId,
    required this.total,
    required super.sourceModuleId,
  });
}
Inheritance

Constructors

GeneratedEvent({required String sourceModuleId})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceModuleId String
finalinherited
timestamp DateTime
finalinherited

Methods

copyWith() GeneratedEvent
Create copy with modifications
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
Convert event to map for serialization
toString() String
A string representation of this object.
inherited

Operators

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