OnInstalledDetails constructor

OnInstalledDetails({
  1. required OnInstalledReason reason,
  2. String? previousVersion,
  3. String? id,
})

Implementation

OnInstalledDetails({
  /// The reason that this event is being dispatched.
  required OnInstalledReason reason,

  /// Indicates the previous version of the extension, which has just been
  /// updated. This is present only if 'reason' is 'update'.
  String? previousVersion,

  /// Indicates the ID of the imported shared module extension which updated.
  /// This is present only if 'reason' is 'shared_module_update'.
  String? id,
}) : _wrapped = $js.OnInstalledDetails(
        reason: reason.toJS,
        previousVersion: previousVersion,
        id: id,
      );