NikuActionChip.icon constructor

NikuActionChip.icon(
  1. IconData? avatar,
  2. Widget? label, {
  3. Key? key,
  4. NikuTextStyle? style,
  5. NikuEdgeInsets? labelPadding,
  6. VoidCallback? onPressed,
  7. double? pressElevation,
  8. String? tooltip,
  9. BorderSide? side,
  10. OutlinedBorder? shape,
  11. Clip? clipBehavior,
  12. FocusNode? focusNode,
  13. bool? autofocus,
  14. Color? backgroundColor,
  15. Color? disabledColor,
  16. NikuEdgeInsets? padding,
  17. VisualDensity? visualDensity,
  18. MaterialTapTargetSize? materialTapTargetSize,
  19. double? elevation,
  20. Color? shadowColor,
  21. Color? surfaceTintColor,
  22. IconThemeData? iconTheme,
})

Implementation

factory NikuActionChip.icon(
  IconData? avatar,
  Widget? label, {
  Key? key,
  NikuTextStyle? style,
  NikuEdgeInsets? labelPadding,
  VoidCallback? onPressed,
  double? pressElevation,
  String? tooltip,
  BorderSide? side,
  OutlinedBorder? shape,
  Clip? clipBehavior,
  FocusNode? focusNode,
  bool? autofocus,
  Color? backgroundColor,
  Color? disabledColor,
  NikuEdgeInsets? padding,
  VisualDensity? visualDensity,
  MaterialTapTargetSize? materialTapTargetSize,
  double? elevation,
  Color? shadowColor,
  Color? surfaceTintColor,
  IconThemeData? iconTheme,
}) {
  return NikuActionChip(
    label,
    key: key,
    avatar: Icon(avatar),
    style: style,
    labelPadding: labelPadding,
    onPressed: onPressed,
    pressElevation: pressElevation,
    tooltip: tooltip,
    side: side,
    shape: shape,
    clipBehavior: clipBehavior,
    focusNode: focusNode,
    autofocus: autofocus,
    backgroundColor: backgroundColor,
    disabledColor: disabledColor,
    padding: padding,
    visualDensity: visualDensity,
    materialTapTargetSize: materialTapTargetSize,
    elevation: elevation,
    shadowColor: shadowColor,
    surfaceTintColor: surfaceTintColor,
    iconTheme: iconTheme,
  );
}