MagicTile constructor

const MagicTile({
  1. Key? key,
  2. Widget? title,
  3. Widget? subtitle,
  4. Widget? leading,
  5. Widget? trailing,
  6. VoidCallback? onPressed,
  7. String? titleText,
  8. String? subtitleText,
  9. IconData? leadingIcon,
  10. List<MenuItem> contextMenu = const [],
  11. bool fatPad = true,
  12. bool contextMenuEnabled = false,
  13. bool essentialLeading = false,
  14. bool essentialTrailing = true,
  15. double fatThreshold = 500,
  16. double leadingThreshold = 300,
  17. double trailingThreshold = 350,
})

Implementation

const MagicTile({
  super.key,
  this.title,
  this.subtitle,
  this.leading,
  this.trailing,
  this.onPressed,
  this.titleText,
  this.subtitleText,
  this.leadingIcon,
  this.contextMenu = const [],
  this.fatPad = true,
  this.contextMenuEnabled = false,
  this.essentialLeading = false,
  this.essentialTrailing = true,
  this.fatThreshold = 500,
  this.leadingThreshold = 300,
  this.trailingThreshold = 350,
});