mkey method

MKey? mkey(
  1. dynamic id
)

Implementation

MKey? mkey(id) {
  if (id is MKey) return id;
  if (id is RecordKey) return MKey(this, id.domainId, id.mxid);
  if (id == null) return null;
  return MKey.parsed(id.toString(), mtype: this);
}