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