getClass abstract method
Retrieves a class by its name from the package.
- If
type
is provided, it returns the matching class. - If omitted or
null
, returns a default or primary class.
Example
final userClass = resource.getClass(User);
print('Found class: ${userClass.name}');
Implementation
Class getClass([Type? type]);