FormattedValuePart class

Represents a part of a formatted value with its associated input part and value.

A FormattedValuePart pairs an InputPart definition with an optional string value, used to represent user input or parsed data within a formatted input field.

Example:

final part = FormattedValuePart(DigitPart(), '5');
final updated = part.withValue('7');
Implementers

Constructors

FormattedValuePart(InputPart part, [String? value])
Creates a FormattedValuePart.
const

Properties

hashCode int
The hash code for this object.
no setteroverride
part InputPart
The input part definition that this value belongs to.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String?
The actual string value for this part, or null if not set.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override
withValue(String value) FormattedValuePart
Creates a copy of this part with a new value.

Operators

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