defaultBuilder method

Widget defaultBuilder(
  1. BuildContext context,
  2. Widget? child
)

Implementation

Widget defaultBuilder(BuildContext context, Widget? child) {
  return Directionality(
    textDirection: textDirection ??
        (rtlLanguages.contains(Get.locale?.languageCode)
            ? TextDirection.rtl
            : TextDirection.ltr),
    child: builder == null
        ? (child ?? Material())
        : builder!(context, child ?? Material()),
  );
}