moduleAlias property

String? get moduleAlias

Implementation

String? get moduleAlias {
  if (url == defaultModuleAlias) return url;
  if (url == 'serverpod') return url;
  if (url?.startsWith(_moduleRef) ?? false) {
    return url?.substring(_moduleRef.length);
  }
  if (url?.startsWith(_projectRef) ?? false) {
    return null;
  }
  if (url?.startsWith(_packageRef) ?? false) {
    return null;
  }
  return url;
}