LocaleValidationResult class

Result of validating a locale code against ISO standards.

Constructors

LocaleValidationResult({required bool isValid, String? languageCode, String? countryCode, String? languageName, String? countryName, String? displayName, String? errorMessage, LocaleValidationErrorType? errorType})
const

Properties

countryCode String?
Parsed and normalized country code (e.g., "US"). Null if not present.
final
countryName String?
Human-readable country name (e.g., "United States"). Null if not present.
final
displayName String?
Full display name (e.g., "English (United States)" or "English").
final
errorMessage String?
Error message if validation failed.
final
errorType LocaleValidationErrorType?
Type of validation error.
final
hashCode int
The hash code for this object.
no setterinherited
isValid bool
Whether the locale code is valid.
final
languageCode String?
Parsed and normalized language code (e.g., "en").
final
languageName String?
Human-readable language name (e.g., "English").
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited