MeiliEvent class sealed

Events emitted by the native Meili SDK and surfaced to Dart through MeiliFlutterPlatform.events.

This is a sealed hierarchy, so consumers can exhaustively handle every variant with a switch expression:

Meili.events.listen((event) {
  switch (event) {
    case MeiliFlowDismissed():
      // user closed the Meili UI
    case MeiliBookingFlowEnded():
      // booking flow reached its end
    case MeiliAnalyticsEvent(:final name):
      // an analytics event was tracked
    case MeiliUnknownEvent():
      // a future event type; safe to ignore
  }
});
Annotations

Constructors

MeiliEvent.fromMap(Map<String, dynamic> map)
Builds a MeiliEvent from a raw event map sent over the platform channel.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toMap() Map<String, dynamic>
Serialises this event back to its channel-map form. Inbound-only on the real channel path; provided for round-trip testing and symmetry.
toString() String
A string representation of this object.
inherited

Operators

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