code property Null safety

String code

Returns the student code saved in storage if found, otherwise returns an empty string.

Implementation

String get code => _prefs.getString(_codeKey) ?? '';