setInt method

Future<void> setInt(
  1. String key,
  2. int value
)

Saves or overwrites an int value.

Implementation

Future<void> setInt(String key, int value) async {
  try {
    await _store.setInt(key, value);
  } catch (e, st) {
    throw StorageException(
      message: 'Failed to set int',
      key: key,
      cause: e,
      stackTrace: st,
    );
  }
}