ScenarioId class final

A stable governed scenario identifier.

JSON artifacts continue to encode this value as its value string. Use ScenarioId.parse at untyped boundaries so non-scenario candidates cannot accidentally satisfy scenario-selection evidence.

Implemented types

Constructors

ScenarioId(String value)
const
ScenarioId.parse(String value)
Validates an ID read from an untyped boundary.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
final

Methods

compareTo(ScenarioId other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Static Methods

tryParse(String value) ScenarioId?