bool? getBoolean(String key) { if (bundle[key] != null && bundle[key]!['type'] == _bool) { return bundle[key]!['val']; } return null; }