Standard enum

A versioned pack of success criteria the audit runs against.

Selecting a pack filters the active rules to those whose cited criterion belongs to it, so switching standards changes both the checks that run and the criteria cited in the output.

Inheritance
Available extensions

Values

en301549_v3_2_1 → const Standard

EN 301 549 v3.2.1, which incorporates WCAG 2.1 Level AA. The default and the current EU legal baseline.

wcag22 → const Standard

WCAG 2.2 Level AA — the basis for the forthcoming EN 301 549 v4.1.1.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

includes(Criterion criterion) bool
Whether this pack includes criterion. WCAG 2.2 is a superset, so it includes everything; EN 301 549 v3.2.1 (WCAG 2.1) excludes criteria that are new in 2.2.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
The JSON representation of this standard (its name).
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromJson(String json) Standard
Parses a Standard from its name.

Constants

values → const List<Standard>
A constant List of the values in this enum, in order of their declaration.