setBool abstract method

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

Method to set boolean value to the storage, value can be null according to the support by underlying storage system.

Example code(SharedPreferences Implementation): /// ```dart Future

Implementation

Future<void> setBool(String key, bool? value);