CtrlMsg constructor

CtrlMsg({
  1. CtrlCmd? cmd,
  2. String? time,
  3. String? msg,
  4. String? data,
})

Implementation

factory CtrlMsg({
  CtrlCmd? cmd,
  $core.String? time,
  $core.String? msg,
  $core.String? data,
}) {
  final result = create();
  if (cmd != null) result.cmd = cmd;
  if (time != null) result.time = time;
  if (msg != null) result.msg = msg;
  if (data != null) result.data = data;
  return result;
}