PageData<T> class
final
Response containing typed data to render the page.
The data field contains the typed result from your loader that will
be passed to the page's render() method.
Usage
// Return typed data
return PageData(user);
// With custom status code
return PageData(user, statusCode: 201);
// With additional headers
return PageData(user, headers: {'X-Custom': 'value'});
- Inheritance
-
- Object
- PageResponse<
T> - PageData
Constructors
Properties
-
List of cookies to set in the response.
final
- data → T
-
The typed data to pass to the page's render method.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> -
Additional HTTP headers for the response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
HTTP status code for the response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited