OudsListItemLeadingContent class
A fully custom leading slot.
Use it for custom leading content that cannot be represented by the other available leading types. It provides flexibility for specific product requirements, but it should be used as an exception rather than the default solution.
The builder receives the current OudsListItemControlState so the custom
content can adapt its appearance (e.g. opacity, color) to the item's
interaction state.
The rendered content is capped to the sizeMaxSizeLeadingTrailingSlot
component token on both dimensions (96 dp on Orange, 72 dp on Orange
Compact).
Example:
OudsListItemLeadingContent(
(context, state) => MyCustomLeadingWidget(enabled: state != OudsListItemControlState.disabled),
)
- Inheritance
-
- Object
- OudsListItemLeading
- OudsListItemLeadingContent
Constructors
- OudsListItemLeadingContent(Widget builder(BuildContext context, OudsListItemControlState state))
-
Creates a leading content configuration.
const
Properties
- builder → Widget Function(BuildContext context, OudsListItemControlState state)
-
Builder used to render the custom leading content with the current
OudsListItemControlState.final - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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