GlassFocusRegion constructor

const GlassFocusRegion({
  1. required Widget child,
  2. required bool enabled,
  3. ShapeBorder? shape,
  4. FocusNode? observedFocusNode,
  5. ValueNotifier<bool>? isFocusedNotifier,
  6. ValueNotifier<bool>? isHoveredNotifier,
  7. FocusNode? focusNode,
  8. bool canRequestFocus = true,
  9. bool autofocus = false,
  10. String? semanticLabel,
  11. bool isButton = false,
  12. bool isSlider = false,
  13. bool tracksSelection = false,
  14. bool isSelected = false,
  15. bool? toggled,
  16. VoidCallback? onKeyboardActivate,
  17. VoidCallback? semanticOnTap,
  18. VoidCallback? semanticOnLongPress,
  19. String? semanticValue,
  20. String? semanticIncreasedValue,
  21. String? semanticDecreasedValue,
  22. VoidCallback? semanticOnIncrease,
  23. VoidCallback? semanticOnDecrease,
  24. Key? key,
})

Interactive mode: full keyboard traversal, semantics, and focus ring.

Implementation

const GlassFocusRegion({
  required this.child,
  required this.enabled,
  this.shape,
  this.observedFocusNode,
  this.isFocusedNotifier,
  this.isHoveredNotifier,
  this.focusNode,
  this.canRequestFocus = true,
  this.autofocus = false,
  this.semanticLabel,
  this.isButton = false,
  this.isSlider = false,
  this.tracksSelection = false,
  this.isSelected = false,
  this.toggled,
  this.onKeyboardActivate,
  this.semanticOnTap,
  this.semanticOnLongPress,
  this.semanticValue,
  this.semanticIncreasedValue,
  this.semanticDecreasedValue,
  this.semanticOnIncrease,
  this.semanticOnDecrease,
  super.key,
});