Rsp class
RSP utilities.
They are used in the generated code of RSP pages.
Constructors
- Rsp()
Properties
- 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
cat(
String uri, Map< String, dynamic> ? parameters) → String - Concatenates a path with a map of parameters.
-
init(
HttpConnect connect, String? contentType, {DateTime? lastModified, String? etag}) → bool - Initializes a RSP page.
-
isHeaderValueValid(
String value) → bool -
Tests if the given
value
can be used as HTTP header's value -
json(
dynamic data) → String -
Serializes the given object into a JSON string by use of
jsonEncode
. -
nns(
[dynamic v]) → String - Converts the given value to a non-null string.
-
nnx(
dynamic value, {String? encode, int maxLength = 0, bool firstLine = false, bool pre = false}) → String - Converts the given value to a non-null string with the given conditions. *