of static method

MessageBody of({
  1. String? type,
})

Implementation

static MessageBody of({
  String? type
  }) {
  final self = MessageBody(<String, dynamic>{}, mtype: MessageBodyRef, update: true);
  if (type != null) self.type = type;
  return self;
}