NikuButton constructor

NikuButton(
  1. Widget child, {
  2. Key? key,
  3. NikuButtonType? type,
  4. VoidCallback? onPressed,
  5. VoidCallback? onLongPress,
  6. NikuButtonStyle? style,
  7. FocusNode? focusNode,
  8. Clip? clipBehavior,
  9. bool? autofocus,
  10. Widget? icon,
  11. Widget? label,
  12. bool enable = true,
})

Implementation

NikuButton(
  this.child, {
  Key? key,
  this.type,
  this.onPressed,
  this.onLongPress,
  this.style,
  this.focusNode,
  this.clipBehavior,
  this.autofocus,

  // For icon factory
  this.icon,
  this.label,

  // Custom
  this.enable = true,
}) : super(key: key);