getInt abstract method Null safety

Future<int> getInt(
  1. String key,
  2. int defaultValue
)

Gets int for key.