getIntOrNull static method

int? getIntOrNull(
  1. String key
)

return int by key else return null

Implementation

static int? getIntOrNull(
  String key,
) =>
    _prefs.getInt(key);