isDefault abstract method

bool isDefault()

Returns true if this is the default locale.

This method compares the current locale with DEFAULT_LOCALE to determine if they are equivalent.

Example:

final locale1 = Locale('en', 'US');
print(locale1.isDefault()); // Output: true

final locale2 = Locale('fr', 'FR');
print(locale2.isDefault()); // Output: false

Implementation

bool isDefault();