HeaderButton.cancel constructor

HeaderButton.cancel({
  1. String? text,
  2. NamedIcon? icon,
  3. Key key = const Key("cancel-header-button"),
  4. EdgeInsets? padding,
  5. EdgeInsets? margin,
  6. bool? isLight,
  7. bool? isPrimary = false,
  8. 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);