setInt method

  1. @override
Future<bool> setInt(
  1. String key,
  2. int value
)

Saves an integer value to persistent storage in the background.

Returns false if the platform implementation can definitively determine that storing the preference failed. A return value of true indicates either that the value was written successfully, or that the underlying platform API does not report success or failure.

Implementation

@override
Future<bool> setInt(String key, int value) => update(key, value);