SantoActionBarButton constructor

const SantoActionBarButton({
  1. Key? key,
  2. String? text,
  3. Widget? child,
  4. SantoActionBarButtonType type = SantoActionBarButtonType.normal,
  5. Color? color,
  6. Widget? icon,
  7. bool loading = false,
  8. bool disabled = false,
  9. VoidCallback? onTap,
  10. bool first = true,
  11. bool last = true,
})

Implementation

const SantoActionBarButton({
  Key? key,
  this.text,
  this.child,
  this.type = SantoActionBarButtonType.normal,
  this.color,
  this.icon,
  this.loading = false,
  this.disabled = false,
  this.onTap,
  this.first = true,
  this.last = true,
})  : assert(text != null || child != null, 'text 与 child 至少提供一个'),
      super(key: key);