Accessibility role - Flutter

For some widgets in Flutter, the role is assignd automatically. This happens, for example, with Flutter's buttons and text fields. If this is not the case, you can use Semantics to indicate a role. The Semantics constructor contains all available options, such as button, header, link and image, among others.

Semantics(
  button: true,
  header: true,
  link: true,
  image: true,
  child: Widget(...)
);