RenderResult class

Result of server-side rendering.

Constructors

RenderResult({required String html, String head = '', String? state, int statusCode = 200, String? redirectTo})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
Additional head content (meta tags, styles).
final
html String
The rendered HTML body content.
final
isRedirect bool
Whether this is a redirect response.
no setter
redirectTo String?
Redirect destination (if redirecting).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
Serialized state for client hydration.
final
statusCode int
HTTP status code (200, 404, etc.).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDocument({String title = '', String lang = 'en', String? bodyClass}) String
The full HTML document.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited