TextDrawableListTile constructor
const
TextDrawableListTile({
- Key? key,
- required String drawableText,
- required Widget title,
- Widget? subtitle,
- Widget? trailing,
- bool isThreeLine = false,
- bool? dense,
- EdgeInsetsGeometry? contentPadding,
- bool enabled = true,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- bool selected = false,
TextDrawableListTile wraps around the material ListTile and intercepts it's onLongPressed callback to provide give animations to the leading TextDrawable widget.
Implementation
const TextDrawableListTile({
Key? key,
required this.drawableText,
required this.title,
this.subtitle,
this.trailing,
this.isThreeLine = false,
this.dense,
this.contentPadding,
this.enabled = true,
this.onTap,
this.onLongPress,
this.selected = false,
}) : assert(!isThreeLine || subtitle != null),
assert(drawableText is String),
super(key: key);