PrefButton constructor
const
PrefButton({
- Key? key,
- required Widget child,
- Color? color,
- Color? textColor,
- Decoration? decoration,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- VoidCallback? onTap,
Create a PrefButton Widget
Implementation
const PrefButton({
super.key,
required this.child,
this.color,
this.textColor,
this.decoration,
this.leading,
this.title,
this.subtitle,
this.onTap,
}) : assert(title != child,
'Use a title to define your own button or child for the button content');