getInt method

Future<int?> getInt(
  1. String key
)

Reads a value from persistent storage, return a future that completes with an error if it's not a int.

Implementation

Future<int?> getInt(String key) => read<int>(key, _cast);