load static method

UserInfo? load(
  1. String tag
)

Implementation

static UserInfo? load(String tag) {
  final String rawString = Preferences.getString(
    '${ApConstants.packageName}'
        '.user_info_$tag',
    '',
  );
  if (rawString == '') {
    return null;
  } else {
    return UserInfo.fromRawJson(rawString);
  }
}