Reads an int value.
static int? readInt(String key) { final String? raw = backend.read(key); return raw == null ? null : int.tryParse(raw); }