# getType method

Class<T> getType()

Returns the type of ApplicationEvent this EventType holds.

## Implementation

    Class<T> getType() {
      String? packageName = _packageName;
      if (packageName == null) {
        if (T is ContextClosedEvent || T is ContextRefreshedEvent || T is ContextStartedEvent || T is ContextStoppedEvent || T is ContextRestartedEvent || T is ContextFailedEvent || T is ContextReadyEvent) {
          packageName = PackageNames.CORE;
        }
      }

      return Class<T>(null, packageName);
    }