HeaderButton.icon constructor

HeaderButton.icon(
  1. NamedIcon? icon, {
  2. Key? key,
  3. FutureCallback? onTap,
  4. EdgeInsets? padding,
  5. EdgeInsets? margin,
  6. bool? isLight,
  7. TextStyle? style,
  8. bool? isPrimary,
})

Implementation

HeaderButton.icon(
  this.icon, {
  Key? key,
  FutureCallback? onTap,
  this.padding,
  this.margin,
  this.isLight,
  this.style,
  this.isPrimary,
})  : text = null,
      onTap = onTap ?? comingSoonCallback,
      super(key: key ?? Key("header-button-$icon"));