saveValue static method

dynamic saveValue(
  1. dynamic target,
  2. dynamic value
)

保存target的原生数据值 或 逻辑处理值

Implementation

static dynamic saveValue(dynamic target, dynamic value) {
  if (target is VmObject) {
    return target.setValue(value);
  } else {
    throw ('Unsupport saveValue operator for type: ${target.runtimeType}');
  }
}