OudsSmallListItemLeadingImage class

Leading image slot for OudsSmallListItem.

Always rendered at OudsListItemAssetSize.small.

Example:

OudsSmallListItemLeadingImage(asset: 'assets/photo.jpg')
OudsSmallListItemLeadingImage(
  asset: 'assets/wide.jpg',
  format: OudsListItemImageFormat.widescreen,
)
Inheritance

Constructors

OudsSmallListItemLeadingImage({required String asset, String? semanticsLabel, OudsListItemImageFormat format = OudsListItemImageFormat.square})
Creates a compact leading 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
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticsLabel → String?
Accessibility description of the image for screen readers.
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