```dart final class Structs extends Declarations { /// Structs imported from other Dart files. final List<ImportedType> imported; ``` We should change these `imported` fields to callbacks: ```dart final class Structs extends Declarations { /// Structs imported from other Dart files. final ImportedType? Function(Declaration) imported; ``` This will enable: 1. using `Declaration.usr` which means we can merge `this.importedTypesByUsr = const <String, ImportedType>{}` into this. (https://github.com/dart-lang/native/issues/2596) 2. match imports programmatically (instead of spelling out all `ImportedTypes` up front) Context: * https://github.com/dart-lang/native/issues/2559#issuecomment-3243457873