Message.fromBody constructor

Message.fromBody({
  1. String? command,
  2. required String body,
})

constructor from params(send data).

Implementation

Message.fromBody({
  String? command,
  required this.body,
}) {
  header = MessageHeader.fromParam(command: command ?? "", bodySize: body.length);
}