normalized method
Returns a normalized version of the zone ID.
This is useful for unifying equivalent representations like 'GMT', 'Z', and 'UTC' into a standard 'UTC' string. It performs basic normalization only.
Example:
ZoneId gmt = ZoneId.of('GMT');
print(gmt.normalized()); // UTC
Implementation
String normalized() {
switch (_id.toUpperCase()) {
case 'GMT':
case 'UTC':
case 'Z':
return 'UTC';
default:
return _id;
}
}