CommonListTile constructor

const CommonListTile({
  1. Key? key,
  2. required String title,
  3. TrailingType trailingType = TrailingType.arrow,
  4. bool? switchValue,
  5. dynamic onSwitchChanged(
    1. bool value
    )?,
  6. Widget? customTrailing,
  7. 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);