CustomSemanticsAction constructor Null safety

const CustomSemanticsAction(
  1. {required String label}
)

Creates a new CustomSemanticsAction.

The label must not be null or the empty string.

Implementation

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