YamlRender class

A class that implements the Render interface to render data as YAML.

Implemented types

Constructors

YamlRender(Map<String, dynamic> data)
Constructor for YamlRender that initializes the data field.

Properties

data Map<String, dynamic>
The data to be serialized to YAML.
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 serializing data to YAML and writing it to the response.
override
toString() String
A string representation of this object.
inherited
writeContentType(Response response) → void
Sets the content type of the response to 'application/x-yaml'.
override

Operators

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