isRtl method
Returns true when text contains RTL characters (Arabic, Hebrew, etc.).
Used to automatically set TextDirection.rtl when no explicit BlocXTextFieldOptions.textDirection is provided.
Implementation
bool isRtl(String text) {
final rtlPattern = RegExp(r'[\u0590-\u08FF\u200F\u202B\u202E\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF]');
return rtlPattern.hasMatch(text);
}