setBool method

void setBool(
  1. String key,
  2. bool value
)

Sets a boolean value for the given key.

Implementation

void setBool(String key, bool value) => _prefsInstance.setBool(key, value);