scriptCode property
The script subtag of the Locale Identifier, null if absent.
It is syntactically valid, normalized (has correct case) and canonical (deprecated tags have been replaced), but not necessarily valid (the script might not exist) because the list of valid scripts changes with time.
Implementation
final String? scriptCode;