const
Widget.chip(- {Key? key,
- Widget? avatar,
- required Widget label,
- TextStyle? labelStyle,
- EdgeInsets? labelPadding,
- Widget? deleteIcon,
- Callback? onDeleted,
- Color? deleteIconColor,
- String? deleteButtonTooltipMessage,
- BorderSide? side,
- ShapeBorder? shape,
- @Default(Clip.none) Clip clipBehavior,
- @Default(false) bool autofocus,
- Color? backgroundColor,
- EdgeInsets? padding,
- VisualDensity? visualDensity,
- MaterialTapTargetSize? materialTapTargetSize,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor}
)
Implementation
const factory Widget.chip({
Key? key,
Widget? avatar,
required Widget label,
TextStyle? labelStyle,
EdgeInsets? labelPadding,
Widget? deleteIcon,
Callback? onDeleted,
Color? deleteIconColor,
String? deleteButtonTooltipMessage,
BorderSide? side,
ShapeBorder? shape,
@Default(Clip.none) Clip clipBehavior,
@Default(false) bool autofocus,
Color? backgroundColor,
EdgeInsets? padding,
VisualDensity? visualDensity,
MaterialTapTargetSize? materialTapTargetSize,
double? elevation,
Color? shadowColor,
Color? surfaceTintColor,
}) = Chip;