CarpenterFieldFeedback class final

Semantic supporting feedback for a Carpenter field.

errorText on existing field APIs remains a compatibility shorthand for danger feedback and always takes precedence when both are provided.

Annotations

Constructors

CarpenterFieldFeedback({required String message, required FeedbackColorRole role})
Associates a supporting message with a semantic feedback role. No validation or interaction occurs when feedback is constructed.
const
CarpenterFieldFeedback.danger(String message)
Creates danger feedback, which makes isError true and selects the field error styling.
const
CarpenterFieldFeedback.info(String message)
Creates informational supporting feedback without marking the field as invalid.
const
CarpenterFieldFeedback.success(String message)
Creates successful supporting feedback without marking the field as invalid.
const
CarpenterFieldFeedback.warning(String message)
Creates warning feedback without marking the field as invalid.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
isError bool
Whether role is danger. Informational, success, and warning feedback do not mark the field as invalid.
no setter
message String
Supporting text displayed by the field shell instead of its ordinary description.
final
role FeedbackColorRole
Semantic feedback palette used for the supporting text and border. Only danger is treated as an error.
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