# getClasses method

1. @override

List<Class> getClasses()
override

Returns all classes defined in the package.

### Example

    final classes = resource.getClasses();
    for (var c in classes) {
      print('Class: ${c.name}');
    }

## Implementation

    @override
    List<Class> getClasses() {
      if(_declarations.isEmpty) {
        _declarations = _findFromLibraryAll();
      }
      return _declarations.map((d) => Class.declared(d, ProtectionDomain.system())).toList();
    }