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 ?? const Material())
        : builder!(context, child ?? const Material()),
  );
}