ledgerDirectional function
icon as it points at context: a left or right chevron or arrow turns
the other way in a right-to-left page, so a disclosure points to the
reading end and a back to its start. Any other glyph is drawn as it is.
Implementation
IconData ledgerDirectional(BuildContext context, IconData icon) =>
Directionality.of(context) == TextDirection.rtl
? (_mirrored[icon] ?? icon)
: icon;