CommonListTile constructor
const
CommonListTile({
- Key? key,
- required String title,
- TrailingType trailingType = TrailingType.arrow,
- bool? switchValue,
- dynamic onSwitchChanged(
- bool value
- Widget? customTrailing,
- VoidCallback? onTap,
Implementation
const CommonListTile(
{Key? key,
required this.title,
this.trailingType = TrailingType.arrow,
this.switchValue,
this.onSwitchChanged,
this.customTrailing,
this.onTap})
: assert(trailingType == TrailingType.arrow ||
trailingType == TrailingType.custom ||
(trailingType == TrailingType.onOff && switchValue != null)),
super(key: key);