int? getInt(String key) { if (bundle[key] != null && bundle[key]!['type'] == _int) { return bundle[key]!['val']; } return null; }