getString static method

Future<String> getString(
  1. String key,
  2. String value
)

Implementation

static Future<String> getString(String key, String value) async {
  await prepareSp();
  return prefs!.getString(key) ?? value;
}