Button constructor
const
Button({})
Implementation
const Button({
Key? key,
this.block = false,
this.danger = false,
this.disabled = false,
this.ghost = false,
this.icon,
this.loading = false,
this.shape = ButtonShape.square,
this.size = Size.medium,
this.type = ButtonType.normal,
this.onClick,
this.child,
}) : assert(child != null || icon != null,
'Child and icon can not be both null'),
super(key: key);