Ruleset constructor

Ruleset({
  1. required String id,
  2. required String path,
  3. required bool enabled,
})

Implementation

Ruleset({
  /// A non-empty string uniquely identifying the ruleset. IDs beginning with
  /// '_' are reserved for internal use.
  required String id,

  /// The path of the JSON ruleset relative to the extension directory.
  required String path,

  /// Whether the ruleset is enabled by default.
  required bool enabled,
}) : _wrapped = $js.Ruleset(
        id: id,
        path: path,
        enabled: enabled,
      );