VRawChip constructor
const
VRawChip({
- Key? key,
- ChipThemeData? defaultProperties,
- Widget? avatar,
- required Widget label,
- TextStyle? labelStyle,
- EdgeInsetsGeometry? padding,
- VisualDensity? visualDensity,
- EdgeInsetsGeometry? labelPadding,
- Widget? deleteIcon,
- VoidCallback? onDeleted,
- Color? deleteIconColor,
- String? deleteButtonTooltipMessage,
- VoidCallback? onPressed,
- ValueChanged<
bool> ? onSelected, - double? pressElevation,
- bool tapEnabled = true,
- bool selected = false,
- bool isEnabled = true,
- Color? disabledColor,
- Color? selectedColor,
- String? tooltip,
- BorderSide? side,
- OutlinedBorder? shape,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- bool autofocus = false,
- WidgetStateProperty<
Color?> ? color, - Color? backgroundColor,
- MaterialTapTargetSize? materialTapTargetSize,
- double? elevation,
- Color? shadowColor,
- Color? surfaceTintColor,
- IconThemeData? iconTheme,
- Color? selectedShadowColor,
- bool? showCheckmark = true,
- Color? checkmarkColor,
- ShapeBorder avatarBorder = const CircleBorder(),
- @Deprecated('Migrate to deleteButtonTooltipMessage. ' 'This feature was deprecated after v2.10.0-0.3.pre.') bool useDeleteButtonTooltip = true,
Creates a VRawChip.
The onPressed and onSelected callbacks must not both be specified at
the same time.
The label, isEnabled, selected, autofocus, and clipBehavior
arguments must not be null. The pressElevation and elevation must be
null or non-negative. Typically, pressElevation is greater than
elevation.
Implementation
const VRawChip({
super.key,
this.defaultProperties,
this.avatar,
required this.label,
this.labelStyle,
this.padding,
this.visualDensity,
this.labelPadding,
Widget? deleteIcon,
this.onDeleted,
this.deleteIconColor,
this.deleteButtonTooltipMessage,
this.onPressed,
this.onSelected,
this.pressElevation,
this.tapEnabled = true,
this.selected = false,
this.isEnabled = true,
this.disabledColor,
this.selectedColor,
this.tooltip,
this.side,
this.shape,
this.clipBehavior = Clip.none,
this.focusNode,
this.autofocus = false,
this.color,
this.backgroundColor,
this.materialTapTargetSize,
this.elevation,
this.shadowColor,
this.surfaceTintColor,
this.iconTheme,
this.selectedShadowColor,
this.showCheckmark = true,
this.checkmarkColor,
this.avatarBorder = const CircleBorder(),
@Deprecated('Migrate to deleteButtonTooltipMessage. '
'This feature was deprecated after v2.10.0-0.3.pre.')
this.useDeleteButtonTooltip = true,
}) : assert(pressElevation == null || pressElevation >= 0.0),
assert(elevation == null || elevation >= 0.0),
deleteIcon = deleteIcon ?? _kDefaultDeleteIcon;