Created
August 22, 2022 23:05
-
-
Save yjbanov/8c57b508e6fbbe8c388e537ec6b5f257 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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