KeyCell.withChild constructor

const KeyCell.withChild({
  1. Key? key,
  2. bool enableHapticFeedback = false,
  3. EdgeInsets? keyPadding,
  4. required BoxShape keyShape,
  5. Color? splashColor,
  6. Color? highlightColor,
  7. Color? backgroundColor,
  8. void onTap(
    1. String
    )?,
  9. Widget? child,
  10. required String value,
  11. TextStyle? style,
  12. HapticFeedbackType? hapticFeedbackType,
})

Creates a key with a custom child widget (e.g., an icon).

Implementation

const KeyCell.withChild({
  super.key,
  this.enableHapticFeedback = false,
  this.keyPadding,
  required this.keyShape,
  this.splashColor,
  this.highlightColor,
  this.backgroundColor,
  this.onTap,
  this.child,
  required this.value,
  this.style,
  this.hapticFeedbackType,
}) : _hasChild = true;