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
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