validate method

  1. @override
String? validate()
override

Returns the violation message, or null if the constraint is satisfied.

Implementation

@override
String? validate() {
  if (!_hasInstancesOfType(typeId)) {
    return null;
  }
  return 'is incompatible with active subsystems of type "$typeId"';
}