TextDrawableListTile constructor

const TextDrawableListTile({
  1. Key? key,
  2. required String drawableText,
  3. required Widget title,
  4. Widget? subtitle,
  5. Widget? trailing,
  6. bool isThreeLine = false,
  7. bool? dense,
  8. EdgeInsetsGeometry? contentPadding,
  9. bool enabled = true,
  10. GestureTapCallback? onTap,
  11. GestureLongPressCallback? onLongPress,
  12. 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);