NikuButton.elevatedIcon constructor

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

Implementation

factory NikuButton.elevatedIcon(
  Widget label,
  Widget icon, {
  Key? key,
  VoidCallback? onPressed,
  VoidCallback? onLongPress,
  NikuButtonStyle? style,
  FocusNode? focusNode,
  bool? autofocus,
  Clip? clipBehavior,
  bool enable = true,
}) =>
    NikuButton(
      SizedBox.shrink(),
      key: key,
      type: NikuButtonType.Elevated,
      onPressed: onPressed,
      onLongPress: onLongPress,
      style: style,
      focusNode: focusNode,
      clipBehavior: clipBehavior,
      label: label,
      icon: icon,
      enable: enable,
    );