SemanticsWrapper.customItem constructor

SemanticsWrapper.customItem({
  1. bool? isChecked = false,
  2. bool? isToggled = false,
  3. bool? isSelected = false,
  4. bool? isReadOnly = false,
  5. bool? isEditable = false,
  6. bool? isFocusable = false,
  7. bool? isMutuallyExclusive = false,
  8. bool? isHidden = false,
  9. bool? isObscured = false,
  10. bool? isMultiline = false,
  11. bool? isLiveRegion = false,
  12. dynamic value,
  13. dynamic hint,
  14. required bool? isEnabled,
  15. required dynamic label,
})

Wrapper that governs a custom item

Implementation

SemanticsWrapper.customItem(
    {this.isChecked = false,
    this.isToggled = false,
    this.isSelected = false,
    this.isReadOnly = false,
    this.isEditable = false,
    this.isFocusable = false,
    this.isMutuallyExclusive = false,
    this.isHidden = false,
    this.isObscured = false,
    this.isMultiline = false,
    this.isLiveRegion = false,
    value,
    hint,
    required this.isEnabled,
    required label})
    : assert(isEnabled != null && label != ""),
      super(
        label: label,
        checked: isChecked,
        toggled: isToggled,
        selected: isSelected,
        readOnly: isReadOnly,
        inMutuallyExclusiveGroup: isMutuallyExclusive,
        hidden: isHidden,
        obscured: isObscured,
        multiline: isMultiline,
        liveRegion: isLiveRegion,
        value: value,
        hint: hint,
        enabled: isEnabled,
        focusable: isFocusable,
        focused: isSelected,
      );