CrimsonWriter class
A writer that writes JSON to a Uint8List.
Constructors
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
-
toBytes(
) → Uint8List - Convert the internal buffer to a Uint8List.
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
dynamic value) → void - Write any value.
-
writeArray(
List value) → void - Write a list.
-
writeArrayEnd(
) → void - End the current JSON array.
-
writeArrayStart(
) → void - Start a new JSON array.
-
writeBool(
bool value) → void - Write true or false.
-
writeNull(
) → void - Write the null value.
-
writeNum(
num value) → void - Write a number.
-
writeObject(
Map< String, dynamic> value) → void - Write a map.
-
writeObjectEnd(
) → void - End the current JSON object.
-
writeObjectKey(
String field) → void - Write a JSON object key.
-
writeObjectKeyRaw(
String field) → void - Write a JSON object key that only consists of ASCII characters and does not need escaping.
-
writeObjectStart(
) → void - Start a new JSON object.
-
writeString(
String value) → void - Write a string.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited