readClass static method

VmClass readClass(
  1. dynamic target, {
  2. String? type,
})

读取target的对应包装类

Implementation

static VmClass readClass(dynamic target, {String? type}) {
  if (type == null) {
    return target is VmObject ? target.getClass() : VmClass._getClassByInstance(target);
  } else {
    return VmClass._getClassByTypeName(type);
  }
}