SessionsConfig class final

The sessions: config section (gh-1746). Today it carries only retention; unknown members are noted, never fatal.

Constructors

SessionsConfig({SessionRetentionConfig retention = const SessionRetentionConfig(), List<String> notes = const []})
Creates a configuration; see retention.
const
SessionsConfig.fromYaml(Object? node)
Parses the sessions: map. Tolerant: never throws.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether the whole section is at its defaults (nothing persisted).
no setter
notes → List<String>
Tolerant-parse notes for the wrapper level (sessions.<key>).
final
retention → SessionRetentionConfig
The retention: block — defaults mean no retention at all.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
toYaml() → String
The full sessions: section, only when non-default; empty at the defaults (the file stays minimal — defaults are never written).

Operators

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