NativeEventModel<T> class

The NativeEventModel class is used to represent a native event and its associated data that occurs within the plugin.

T represents the type of the event data that will be managed by this model.

Constructors

NativeEventModel.new({NativeEventTypes? event, Map<String, dynamic>? data})
Constructor to initialize a NativeEventModel with an optional event type and data.
NativeEventModel.fromJson(Map<String, dynamic> json)
Creates a NativeEventModel object from a JSON map.

Properties

data Map<String, dynamic>?
A map of dynamic data that holds additional information related to the event.
getter/setter pair
event NativeEventTypes?
The type of the event, which is represented by NativeEventTypes.
getter/setter pair
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
toString() String
A string representation of this object.
inherited

Operators

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