# ExtensionDeclaration constructor

const ExtensionDeclaration()

Represents a Dart `extension` declaration at runtime.

Provides access to the type being extended and the members defined in the extension (methods, getters, setters, etc.).

### Example

    extension MyStringExtension on String {
      String reversed() => split('').reversed.join();
    }

    final extension = reflector.reflectExtension('MyStringExtension');
    print(extension.getExtendedType().getName()); // String
    for (final member in extension.getMembers()) {
      print(member.getName()); // reversed
    }

## Implementation

    const ExtensionDeclaration();