NikuActionChip.icon constructor
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,
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,
);
}