directionality function

Widget directionality({
  1. required bool rtl,
  2. required Widget child,
})

Implementation

Widget directionality({required final bool rtl, required final Widget child}) => Directionality(
      textDirection: rtl ? ui.TextDirection.rtl : ui.TextDirection.ltr,
      child: child,
    );