hasVariant abstract method
Returns true if the locale has a variant.
This method checks whether a variant was specified during locale creation and is not empty.
Example:
final locale1 = Locale('en', 'US', 'POSIX');
print(locale1.hasVariant()); // Output: true
final locale2 = Locale('en', 'US');
print(locale2.hasVariant()); // Output: false
Implementation
bool hasVariant();