EscapedCharCodec class final

Escape all control characters to human readable String based on JsonCodec as well as denote String type when parsable.

Inheritance

Constructors

EscapedCharCodec({Quoting? quoting})
Create instance of escaping character codec.
const

Properties

decoder Converter<String, String>
Returns the decoder of this, converting from T to S.
no setteroverride
encoder Converter<String, String>
Returns the encoder from S to T.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inverted Codec<String, String>
Inverts this.
no setterinherited
quoting Quoting?
Define quoting symbol when encode with parsable String.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(String encoded) String
Decodes encoded data.
inherited
encode(String input) String
Encodes input.
inherited
fuse<R>(Codec<String, R> other) Codec<String, R>
Fuses this with other.
inherited
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