OudsListItemTrailingContent class
A fully custom trailing slot.
Use it for custom trailing content that cannot be represented by the other available trailing 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:
OudsListItemTrailingContent(
(context, state) => MyCustomTrailingWidget(enabled: state != OudsListItemControlState.disabled),
)
- Inheritance
-
- Object
- OudsListItemTrailing
- OudsListItemTrailingContent
Constructors
- OudsListItemTrailingContent(Widget builder(BuildContext context, OudsListItemControlState state))
-
Creates a trailing content configuration.
const
Properties
- builder → Widget Function(BuildContext context, OudsListItemControlState state)
-
Builder used to render the custom trailing 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