HeaderButton.cancel constructor
HeaderButton.cancel({
- String? text,
- NamedIcon? icon,
- Key key = const Key("cancel-header-button"),
- EdgeInsets? padding,
- EdgeInsets? margin,
- bool? isLight,
- bool? isPrimary = false,
- TextStyle? style,
Implementation
HeaderButton.cancel({
String? text,
this.icon,
Key key = const Key("cancel-header-button"),
this.padding,
this.margin,
this.isLight,
this.isPrimary = false,
this.style,
}) : text = text ?? "Cancel",
onTap = ((context) {
Navigator.pop(context);
}),
super(key: key);