StringRender class

A class that implements the Render interface to render a string response.

Implemented types

Constructors

StringRender(String content)
Constructor for StringRender that initializes the content.

Properties

content String
The content to be rendered as a string.
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 writing the content type and the content.
override
toString() String
A string representation of this object.
inherited
writeContentType(Response response) → void
Sets the content type of the response to 'text/plain' with UTF-8 charset.
override

Operators

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