CustomSemanticsAction.overridingAction constructor Null safety

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 null or the empty string.

Implementation

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