getClass abstract method

Class getClass()

Gets the class metadata of the annotation type.

Returns:

  • A Class instance representing the annotation's type

Example:

final clazz = annotation.getClass();
print('Annotation type: ${clazz.name}');

Implementation

Class getClass();