NUIMiniProgramMessage class

Message class for message exchange between the super-app and the mini-app

Constructors

NUIMiniProgramMessage({String? id, required String channel, required dynamic data})
NUIMiniProgramMessage.empty()

Properties

channel String
getter/setter pair
data ↔ dynamic
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fromJson(Map<String, dynamic> json) NUIMiniProgramMessage
isResponseReceived() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
response({dynamic data, String? channel}) NUIMiniProgramMessage
responseReceived() NUIMiniProgramMessage
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Constants

DEFAULT_CHANNEL → const String