HelpButton constructor

const HelpButton({
  1. Key? key,
  2. Color? color,
  3. Color? disabledColor,
  4. VoidCallback? onPressed,
  5. double? pressedOpacity = 0.4,
  6. AlignmentGeometry alignment = Alignment.center,
  7. String? semanticLabel,
  8. MouseCursor? mouseCursor = SystemMouseCursors.basic,
})

pressedOpacity, if non-null, must be in the range if 0.0 to 1.0

Implementation

const HelpButton({
  super.key,
  this.color,
  this.disabledColor,
  this.onPressed,
  this.pressedOpacity = 0.4,
  this.alignment = Alignment.center,
  this.semanticLabel,
  this.mouseCursor = SystemMouseCursors.basic,
}) : assert(pressedOpacity == null ||
          (pressedOpacity >= 0.0 && pressedOpacity <= 1.0));