CustomSemanticsAction.overridingAction constructor

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

Creates a new CustomSemanticsAction that overrides a standard semantics action.

The hint must not be null or the empty string.

Implementation

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