BeuiPromptAttachment class
One attachment riding along with the prompt, shown as a chip above the field.
The package ships no file picker (spec §7): the consumer picks files with whatever plugin fits their platform, uploads them, and reflects progress by passing new instances through BeuiPromptInput.attachments.
- Annotations
Constructors
-
BeuiPromptAttachment({required String id, required String name, ImageProvider<
Object> ? thumbnail, Widget? icon, BeuiPromptAttachmentStatus status = BeuiPromptAttachmentStatus.ready, double? progress, String? error}) -
Creates an attachment chip.
const
Properties
- error → String?
-
Failure note, surfaced on the chip and read by screen readers.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icon → Widget?
-
Optional leading glyph for non-image attachments. Falls back to a generic
file mark.
final
- id → String
-
Stable identity. Drives the chip's enter/exit animation, so it must not
change as the attachment moves between statuses.
final
- name → String
-
File name shown on the chip.
final
- progress → double?
-
Upload progress as a 0-1 fraction, when known.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → BeuiPromptAttachmentStatus
-
Delivery state.
final
-
thumbnail
→ ImageProvider<
Object> ? -
Optional image preview, rendered as the chip's 20px leading square.
Takes precedence over icon.
final
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