getStringOrNull static method

String? getStringOrNull(
  1. String key
)

return String by key if exists else return null

Implementation

static String? getStringOrNull(
  String key,
) =>
    _prefs.getString(key);