MessageEvent class

Represents a parsed WebView message and its possible event types. Only one event type will be set based on the command.

Constructors

MessageEvent({WebViewReader? webViewReader, SelfDescribing? selfDescribing, Structured? structured, ScreenView? screenView, PageViewEvent? pageViewEvent})
const
MessageEvent.fromMap(String command, Map<String, dynamic> json)

Properties

hashCode → int
The hash code for this object.
no setterinherited
pageViewEvent → PageViewEvent?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenView → ScreenView?
final
selfDescribing → SelfDescribing?
final
structured → Structured?
final
webViewReader → WebViewReader?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEvent() → Event
Returns the actual Snowplow event instance based on the initialized field. Throws an exception if no valid event is found.
toString() → String
A string representation of this object.
inherited

Operators

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