PreferenceTile constructor
const
PreferenceTile({ - required String title,
- Widget? leading,
- double? leadingSize,
- Widget? icon,
- String? subtitleText,
- Widget? subtitle,
- String? boldPostScriptum,
- Widget? trailing,
- dynamic onTap()?,
- EdgeInsetsDirectional? padding,
- BorderRadius? borderRadius,
- 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.',
);