takeAnnouncements method

List<CapturedAccessibilityAnnouncement> takeAnnouncements()

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.

See TestWidgetsFlutterBinding.takeAnnouncements for details.

Implementation

List<CapturedAccessibilityAnnouncement> takeAnnouncements() {
  return binding.takeAnnouncements();
}