Eventuous class

Eventuous

@AggregateType()
class Foo extends _$Foo {}
@AggregateType(Foo) // => infers TId is FooId
class FooId {}
@AggregateType()
class Foo extends _$Foo {}
@JsonSerializable() // => infers TData is JsonMap,
@AggregateEventType(Foo) // => links FooCreated with Foo
class FooCreated extends _$FooCreated {}
@AggregateType() // => infers TState is FooState
class Foo extends _$Foo {}
@AggregateStateType(Foo)
class FooState extends _$FooState {}
@AggregateType() // => infers TValue is FooValue
class Foo extends _$Foo {}
class FooValue {}
@AggregateStateType(Foo) // => infers TValue is FooValue
class FooState extends _$FooState {}

When false, the limiting type of parameterized types like TValue in AggregateState is used if not explicitly specified with given annotations:

Constructors

Eventuous({bool? inferTypes, bool? lazyService, String? initializerName})
const
Eventuous.fromJson(JsonMap json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
inferTypes bool
final
initializerName String
Name of the generated initializer method
final
inspectPath String
Input path for code inspection
final
inspectPattern String
Input pattern for code inspection
final
lazyService bool
Application services are registered lazily
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
toJson() JsonMap
toString() String
A string representation of this object.
inherited

Operators

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