OudsListItemTrailingImage class

Trailing image slot.

Example:

OudsListItemTrailingImage(
  asset: 'assets/images/photo.jpg',
  semanticsLabel: 'Product photo',
  size: OudsListItemImageSize.large,
  format: OudsListItemImageFormat.widescreen,
  rounded: true,
)
Inheritance

Constructors

OudsListItemTrailingImage({required String asset, String? semanticsLabel, OudsListItemImageSize size = OudsListItemImageSize.medium, OudsListItemImageFormat format = OudsListItemImageFormat.square, bool rounded = false})
Creates a trailing image configuration.
const

Properties

asset → String
Path to the image asset (raster or SVG).
final
format → OudsListItemImageFormat
Aspect-ratio format. Defaults to OudsListItemImageFormat.square.
final
hashCode → int
The hash code for this object.
no setterinherited
rounded → bool
Whether the image is displayed with rounded corners. Defaults to false.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticsLabel → String?
Accessibility description of the image for screen readers.
final
size → OudsListItemImageSize
Size of the image. Defaults to OudsListItemImageSize.medium.
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