AAListItem constructor
AAListItem({
- required String title,
- String? subtitle,
- String? image,
- String? imageUrl,
- AutoImageTint? imageTint,
- String? trailingImage,
- AutoImageTint? trailingImageTint,
- String? loadingMessage,
- bool? isBrowsable,
- AAToggle? toggle,
- FutureOr<
void> onPress(- dynamic complete(),
- AAListItem self
- String? id,
Implementation
AAListItem({
required this.title,
this.subtitle,
String? image,
String? imageUrl,
this.imageTint,
this.trailingImage,
this.trailingImageTint,
this.loadingMessage,
this.isBrowsable,
this.toggle,
this.onPress,
String? id,
}) : imageUrl = imageUrl ?? image,
assert(
isBrowsable != true || toggle == null,
'A browsable row must not have a toggle set.',
),
assert(
isBrowsable != true || onPress != null,
'A browsable row must have an onClickListener set.',
),
assert(
toggle == null || onPress == null,
'If a row contains a toggle, it must not have an onClickListener set.',
),
_elementId = id ?? const Uuid().v4();