PreferenceTile constructor

const PreferenceTile({
  1. required String title,
  2. Widget? leading,
  3. double? leadingSize,
  4. Widget? icon,
  5. String? subtitleText,
  6. Widget? subtitle,
  7. String? boldPostScriptum,
  8. Widget? trailing,
  9. dynamic onTap()?,
  10. EdgeInsetsDirectional? padding,
  11. BorderRadius? borderRadius,
  12. Key? key,
})

Implementation

const PreferenceTile({
  required this.title,
  this.leading,
  this.leadingSize,
  this.icon,
  this.subtitleText,
  this.subtitle,
  this.boldPostScriptum,
  this.trailing,
  this.onTap,
  this.padding,
  this.borderRadius,
  super.key,
}) : assert(
       (subtitleText != null && subtitle == null) ||
           (subtitleText == null && subtitle != null) ||
           (subtitleText == null && subtitle == null),
       'Either subtitleText or subtitle must be provided, not both.',
     ),
     assert(
       leading == null || icon == null,
       'Either leading or icon must be provided.',
     );