getInt method

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

Reads a value from the platform, throwing a TypeError if the value is not an int.

Implementation

Future<int?> getInt(String key) async {
  return _platform.getInt(key, _options);
}