validate method
Returns the violation message, or null if the constraint is satisfied.
Implementation
@override
String? validate() {
if (SubsystemInstanceRegistry.findSubsystemByIds<Subsystem>(typeId, classId) != null) {
return null;
}
return 'requires subsystem "$typeId::$classId" to be registered';
}