AnnounceSemanticsEvent constructor Null safety

const AnnounceSemanticsEvent(
  1. String message,
  2. TextDirection textDirection,
  3. {Assertiveness assertiveness = Assertiveness.polite}
)

Constructs an event that triggers an announcement by the platform.

Implementation

const AnnounceSemanticsEvent(this.message, this.textDirection, {this.assertiveness = Assertiveness.polite})
  : assert(message != null),
    assert(textDirection != null),
    super('announce');