putBool method

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

存储布尔值

Implementation

Future<bool> putBool(String key, bool value) async {
  await ensureInitialized();
  logger.i("putBool key:$key value:$value");
  return _prefs?.setBool(key, value) ?? false;
}