MicroAppEvent<T> class

Inheritance

Constructors

MicroAppEvent({List<String> channels = const [], DateTime? datetime, String? name, T? payload, bool distinct = true, MethodCall? methodCall, String? version})
MicroAppEvent.fromMap(Map<String, dynamic> map)
factory

Properties

asFuture Future
Returns a Future
no setter
channels List<String>
finalinherited
datetime DateTime
final
distinct bool
final
hashCode int
The hash code for this object.
no setterinherited
hasMethodCall bool
no setter
methodCall MethodCall?
final
name String?
final
payload → T?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
type Type
no setter
version String?
final

Methods

cast() → T?
copyTyped() → dynamic
copyWith({String? name, T? payload, bool? distinct, MethodCall? methodCall, String? version, DateTime? datetime, List<String>? channels}) MicroAppEvent<T>
MicroAppEvent.copyWith
copyWithTyped<D>({String? name, D? payload, bool? distinct, MethodCall? methodCall, String? version, DateTime? datetime}) MicroAppEvent<D?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resultError(Object error, [StackTrace? stackTrace]) → void
Completes with error
resultSuccess([FutureOr? value]) → void
Completes with success
toJson() String
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromJson<T>(String source) MicroAppEvent<T>?