response method

NUIMiniProgramMessage response({
  1. dynamic data,
  2. String? channel,
})

Implementation

NUIMiniProgramMessage response({dynamic data, String? channel}){
  return NUIMiniProgramMessage(
    id: this.id,
    channel: channel ?? this.channel,
    data: data
  );
}