setValue abstract method

Future<bool> setValue(
  1. T value
)

Sets the value of the underlying shared preference.

This will subsequently notify any listeners with the updated value.

Returns true if the value was successfully set, otherwise returns false.

Implementation

Future<bool> setValue(T value);