Gets list value.
List<T>? list<T>(String key) { final value = get(key); if (value is List) { return value.cast<T>(); } return null; }