JsonUtf8Encoder class final
Encoder that encodes a single object as a UTF-8 encoded JSON string.
This encoder works equivalently to first converting the object to a JSON string, and then UTF-8 encoding the string, but without creating an intermediate string.
Constructors
- JsonUtf8Encoder([String? indent, dynamic toEncodable(dynamic object)?, int? bufferSize])
- Create converter.
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
bind(
Stream< Object?> stream) → Stream<List< int> > -
Transforms the provided
stream
.override -
cast<
RS, RT> () → Converter< RS, RT> -
Provides a
Converter<RS, RT>
view of this stream transformer.inherited -
convert(
Object? object) → List< int> -
Convert
object
into UTF-8 encoded JSON.override -
fuse<
TT> (Converter< List< other) → Converter<int> , TT>Object?, TT> -
Fuses
this
withother
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
startChunkedConversion(
Sink< List< sink) → ChunkedConversionSink<int> >Object?> -
Start a chunked conversion.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited