PlaceholderParsedSection class

Represents a parsed section of a placeholder string, typically extracted from a raw placeholder like #{key:default}.

This class holds:

  • The key part (e.g., key)
  • The fallback part if present (e.g., default)

It is used during placeholder parsing to distinguish between the key to be resolved and the fallback value to use when resolution fails.

Example:

#{app.name:MyApp}

would be parsed into:

ParsedSection('app.name', 'MyApp');

This class is used internally during placeholder analysis and decomposition, and is not meant to be exposed to end users directly.

Constructors

PlaceholderParsedSection(String key, String? fallback)
Represents a parsed section of a placeholder string, typically extracted from a raw placeholder like #{key:default}.

Properties

fallback String?
The optional fallback value (e.g., MyApp).
final
hashCode int
The hash code for this object.
no setterinherited
key String
The placeholder key (e.g., app.name).
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

Operators

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