resolve<T extends APIObject> method Null safety

T? resolve<T extends APIObject>(
  1. T refObject
)

Implementation

T? resolve<T extends APIObject>(T refObject) {
  if (refObject.referenceURI == null) {
    throw ArgumentError("APIObject is not a reference to a component.");
  }

  return resolveUri(refObject.referenceURI!) as T?;
}