Extension<T> constructor

Extension<T>({
  1. String? id,
  2. Uri? extensionUri,
  3. String? extensionPath,
  4. bool? isActive,
  5. dynamic packageJSON,
  6. ExtensionKind? extensionKind,
  7. dynamic exports,
  8. Future activate()?,
})

Implementation

factory Extension({
  _i2.String? id,
  _i3.Uri? extensionUri,
  _i2.String? extensionPath,
  _i2.bool? isActive,
  _i2.dynamic packageJSON,
  _i3.ExtensionKind? extensionKind,
  _i2.dynamic exports,
  _i2.Future<_i2.dynamic> Function()? activate,
}) =>
    Extension._(
      id: id,
      extensionUri: extensionUri ?? _i6.undefined,
      extensionPath: extensionPath,
      isActive: isActive,
      packageJSON: packageJSON,
      extensionKind: extensionKind?.name,
      exports: exports,
      activate: activate == null ? null : _i5.allowInterop(activate),
    );