Skip to content

Instantly share code, notes, and snippets.

@yjbanov
Created August 22, 2022 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yjbanov/8c57b508e6fbbe8c388e537ec6b5f257 to your computer and use it in GitHub Desktop.
Save yjbanov/8c57b508e6fbbe8c388e537ec6b5f257 to your computer and use it in GitHub Desktop.
class CapturedAccessibilityAnnouncement {
const CapturedAccessibilityAnnouncement(this.message, this.textDirection, {this.assertiveness = Assertiveness.polite});
final String message;
final TextDirection textDirection;
final Assertiveness? assertiveness;
void matches({
Matcher? message,
Matcher? textDirection,
Matcher? assertiveness,
}) {
if (message != null) {
expect(this.message, message);
}
if (textDirection != null) {
expect(this.textDirection, textDirection);
}
if (assertiveness != null) {
expect(this.assertiveness, assertiveness);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment