import method

void import(
  1. HTStruct other, {
  2. bool clone = false,
})

Implementation

void import(HTStruct other, {bool clone = false}) {
  for (final key in other._fields.keys) {
    if (!_fields.keys.contains(key)) {
      define(key, other._fields[key]);
    }
  }
}