SessionPresetRegistry class
Registry of known session presets: the built-ins plus any custom presets applications register (spec FR-003).
Constructors
-
SessionPresetRegistry({Iterable<
SessionPreset> additional = const []}) - SessionPresetRegistry.withBuiltIns()
-
A registry with only the built-in presets.
factory
Properties
-
all
→ Iterable<
SessionPreset> -
All registered presets.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
names
→ Iterable<
String> -
All registered preset names.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
contains(
String name) → bool -
Whether a preset with
nameis registered. -
lookup(
String name) → SessionPreset? -
Looks up a preset by name, or
nullwhen unknown. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register(
SessionPreset preset) → void - Registers a custom preset. Duplicate names are rejected with a ZuraffaSessionException.duplicatePreset (prevents one domain from silently shadowing another's session type).
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited