StreamMessageComposerMediaAttachmentThemeData class
Theme data for customizing StreamMessageComposerMediaAttachment widgets.
Descendant widgets obtain their values from StreamMessageComposerMediaAttachmentTheme.of. All properties are null by default, with fallback values applied by DefaultStreamMessageComposerMediaAttachment.
{@tool snippet}
Customize media attachment styling globally via StreamTheme:
StreamTheme(
messageComposerMediaAttachmentTheme:
StreamMessageComposerMediaAttachmentThemeData(
borderColor: Colors.black12,
),
)
{@end-tool}
See also:
- StreamMessageComposerMediaAttachmentTheme, for overriding theme in a widget subtree.
- StreamMessageComposerMediaAttachment, the widget that uses this theme data.
- Annotations
-
- @themeGen
- @immutable
Constructors
- StreamMessageComposerMediaAttachmentThemeData({Color? borderColor, Size? size})
-
Creates composer media attachment theme data with optional overrides.
const
Properties
- borderColor → Color?
-
Border color drawn around the media attachment's container.
final
- canMerge → bool
-
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → Size?
-
Dimensions of the media thumbnail.
final
Methods
-
copyWith(
{Color? borderColor, Size? size}) → StreamMessageComposerMediaAttachmentThemeData -
inherited
-
merge(
StreamMessageComposerMediaAttachmentThemeData? other) → StreamMessageComposerMediaAttachmentThemeData -
inherited
-
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
Static Methods
-
lerp(
StreamMessageComposerMediaAttachmentThemeData? a, StreamMessageComposerMediaAttachmentThemeData? b, double t) → StreamMessageComposerMediaAttachmentThemeData? - Linearly interpolate between two StreamMessageComposerMediaAttachmentThemeData objects.