compareTo method
Implementation
List<ApiChange> compareTo(DocComponent newComponent) {
final changes = <ApiChange>[];
if (isNullSafe != newComponent.isNullSafe) {
changes.add(
ComponentApiChange(
component: this,
operation: newComponent.isNullSafe ? ApiChangeOperation.becameNullSafe : ApiChangeOperation.becameNullUnsafe,
),
);
}
changes.addAll(
constructors.compareTo(newComponent.constructors, component: this),
);
changes.addAll(
properties.compareTo(newComponent.properties, component: this),
);
return changes;
}