Overview
This function retrieves a previously stored value from UserDefaults using the specified key.
Parameters
getUserDefault(key)
Key
The string key associated with the stored value.
For example...
getUserDefault("username")
Returns the stored value for "username" or null if not found.