takeAnnouncements method
Returns a list of all the accessibility announcements made by the Flutter framework since the last time this function was called.
It's safe to call this when there hasn't been any announcements; it will return an empty list in that case.
Implementation
List<CapturedAccessibilityAnnouncement> takeAnnouncements() {
assert(inTest);
final List<CapturedAccessibilityAnnouncement> announcements = _announcements;
_announcements = <CapturedAccessibilityAnnouncement>[];
return announcements;
}