copyWith method

SemanticsFlags copyWith({
  1. bool? hasCheckedState,
  2. bool? isChecked,
  3. bool? isSelected,
  4. bool? isButton,
  5. bool? isTextField,
  6. bool? isFocused,
  7. bool? hasEnabledState,
  8. bool? isEnabled,
  9. bool? isInMutuallyExclusiveGroup,
  10. bool? isHeader,
  11. bool? isObscured,
  12. bool? scopesRoute,
  13. bool? namesRoute,
  14. bool? isHidden,
  15. bool? isImage,
  16. bool? isLiveRegion,
  17. bool? hasToggledState,
  18. bool? isToggled,
  19. bool? hasImplicitScrolling,
  20. bool? isMultiline,
  21. bool? isReadOnly,
  22. bool? isFocusable,
  23. bool? isLink,
  24. bool? isSlider,
  25. bool? isKeyboardKey,
  26. bool? isCheckStateMixed,
  27. bool? hasExpandedState,
  28. bool? isExpanded,
  29. bool? hasSelectedState,
  30. bool? hasRequiredState,
  31. bool? isRequired,
})

Copy the semantics flags, with some of them optionally replaced.

Implementation

SemanticsFlags copyWith({
  bool? hasCheckedState,
  bool? isChecked,
  bool? isSelected,
  bool? isButton,
  bool? isTextField,
  bool? isFocused,
  bool? hasEnabledState,
  bool? isEnabled,
  bool? isInMutuallyExclusiveGroup,
  bool? isHeader,
  bool? isObscured,
  bool? scopesRoute,
  bool? namesRoute,
  bool? isHidden,
  bool? isImage,
  bool? isLiveRegion,
  bool? hasToggledState,
  bool? isToggled,
  bool? hasImplicitScrolling,
  bool? isMultiline,
  bool? isReadOnly,
  bool? isFocusable,
  bool? isLink,
  bool? isSlider,
  bool? isKeyboardKey,
  bool? isCheckStateMixed,
  bool? hasExpandedState,
  bool? isExpanded,
  bool? hasSelectedState,
  bool? hasRequiredState,
  bool? isRequired,
}) {
  return SemanticsFlags(
    hasCheckedState: hasCheckedState ?? this.hasCheckedState,
    isChecked: isChecked ?? this.isChecked,
    isSelected: isSelected ?? this.isSelected,
    isButton: isButton ?? this.isButton,
    isTextField: isTextField ?? this.isTextField,
    isFocused: isFocused ?? this.isFocused,
    hasEnabledState: hasEnabledState ?? this.hasEnabledState,
    isEnabled: isEnabled ?? this.isEnabled,
    isInMutuallyExclusiveGroup: isInMutuallyExclusiveGroup ?? this.isInMutuallyExclusiveGroup,
    isHeader: isHeader ?? this.isHeader,
    isObscured: isObscured ?? this.isObscured,
    scopesRoute: scopesRoute ?? this.scopesRoute,
    namesRoute: namesRoute ?? this.namesRoute,
    isHidden: isHidden ?? this.isHidden,
    isImage: isImage ?? this.isImage,
    isLiveRegion: isLiveRegion ?? this.isLiveRegion,
    hasToggledState: hasToggledState ?? this.hasToggledState,
    isToggled: isToggled ?? this.isToggled,
    hasImplicitScrolling: hasImplicitScrolling ?? this.hasImplicitScrolling,
    isMultiline: isMultiline ?? this.isMultiline,
    isReadOnly: isReadOnly ?? this.isReadOnly,
    isFocusable: isFocusable ?? this.isFocusable,
    isLink: isLink ?? this.isLink,
    isSlider: isSlider ?? this.isSlider,
    isKeyboardKey: isKeyboardKey ?? this.isKeyboardKey,
    isCheckStateMixed: isCheckStateMixed ?? this.isCheckStateMixed,
    hasExpandedState: hasExpandedState ?? this.hasExpandedState,
    isExpanded: isExpanded ?? this.isExpanded,
    hasSelectedState: hasSelectedState ?? this.hasSelectedState,
    hasRequiredState: hasRequiredState ?? this.hasRequiredState,
    isRequired: isRequired ?? this.isRequired,
  );
}