qualifyType function Null safety

String qualifyType(
  1. DartType ty,
  2. ImportModel imports
)

Implementation

String qualifyType(DartType ty, ImportModel imports) {
  final prefixOrNull = imports._fullNameToPrefix[fullName(ty.element!)];
  final prefix = (prefixOrNull != null) ? (prefixOrNull + '.') : '';
  return '$prefix${ty.element!.name}';
}