getClassDeclarationFromType method

ClassDeclaration? getClassDeclarationFromType(
  1. Type type
)

Implementation

ClassDeclaration? getClassDeclarationFromType(Type type) {
  final classMirror = reflectType(type);
  return analyzer!.getClassFromFile(
      MirrorSystem.getName(classMirror.simpleName),
      resolveUri(classMirror.location!.sourceUri));
}