getRoles function Accessibility
Returns a map, indexed by role name, with each value being an array of
elements in container which have that implicit ARIA role.
See ARIA in HTML for more information about implicit ARIA roles.
Set hidden to true to include elements that are normally excluded from the accessibility tree.
Learn more: testing-library.com/docs/dom-testing-library/api-accessibility/#getroles
Implementation
Map<String, List> getRoles(Node container, {bool hidden = false}) =>
Map.from(JsBackedMap.fromJs(_getRoles(container, jsifyAndAllowInterop({'hidden': hidden}) as JsMap)));