CustomSemanticsAction.overridingAction constructor

const CustomSemanticsAction.overridingAction({
  1. required String hint,
  2. required SemanticsAction action,
})

Creates a new CustomSemanticsAction that overrides a standard semantics action.

The hint must not be empty.

Implementation

const CustomSemanticsAction.overridingAction({required String this.hint, required SemanticsAction this.action})
  : assert(hint != ''),
    label = null;