TdTextButton.primary constructor
const
TdTextButton.primary({
- Key? key,
- required VoidCallback onPressed,
- bool disabled = false,
- bool block = true,
- TdButtonSize size = TdButtonSize.large,
- TdButtonShape shape = TdButtonShape.rectangle,
- Widget? icon,
- required Widget child,
Implementation
const TdTextButton.primary({
super.key,
required this.onPressed,
this.disabled = false,
this.block = true,
this.size = TdButtonSize.large,
this.shape = TdButtonShape.rectangle,
this.icon,
required this.child,
}) : type = TdButtonType.primary;