putBool static method

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

添加bool类型数据 keyvalue

Implementation

static Future<void> putBool(String key, bool value) async {
  _println('putBool', key, value);
  SharedPreferences prefs = await SharedPreferences.getInstance();
  prefs.setBool(key, value);
}