StreamMessageComposerFileAttachmentProps class
Properties for configuring a StreamMessageComposerFileAttachment.
This class holds all the configuration options for a file attachment, allowing them to be passed through the StreamComponentFactory.
See also:
- StreamMessageComposerFileAttachment, which uses these properties.
- DefaultStreamMessageComposerFileAttachment, the default implementation.
Constructors
- StreamMessageComposerFileAttachmentProps({required Widget title, Widget? subtitle, StreamFileTypeIcon? fileTypeIcon, VoidCallback? onRemovePressed, String? semanticLabel, StreamMessageComposerFileAttachmentThemeData? style})
-
Creates properties for a file attachment.
const
Properties
- fileTypeIcon → StreamFileTypeIcon?
-
An optional leading icon representing the file type.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- onRemovePressed → VoidCallback?
-
Called when the remove button is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- semanticLabel → String?
-
Semantic label for the attachment.
final
- style → StreamMessageComposerFileAttachmentThemeData?
-
Per-instance style overrides.
final
- subtitle → Widget?
-
An optional secondary label shown below title.
final
- title → Widget
-
The primary label shown on the first line.
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