OudsListItemLeadingImage class

Leading image slot.

Example:

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

Constructors

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

Properties

asset String
Path to the image asset (raster or SVG).
final
contentDescription String?
Accessibility description of the image for screen readers.
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
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