DataRender class
A class that implements the Render interface to handle rendering of data. This class is responsible for setting the content type and writing the data to the response.
- Implemented types
Constructors
-
DataRender(String contentType, List<
int> data) -
Constructs a DataRender instance with the specified
contentTypeanddata.
Properties
- contentType → String
-
The MIME type of the content being rendered.
final
-
data
→ List<
int> -
The data to be rendered, represented as a list of bytes.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
render(
Response response) → void -
Renders the response by setting the content type and writing the data.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
writeContentType(
Response response) → void -
Sets the content type of the response.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited