SemanticsHintOverrides constructor Null safety

const SemanticsHintOverrides(
  1. {String? onTapHint,
  2. String? onLongPressHint}
)

Creates a semantics hint overrides.

Implementation

const SemanticsHintOverrides({
  this.onTapHint,
  this.onLongPressHint,
}) : assert(onTapHint != ''),
     assert(onLongPressHint != '');