CborSimpleEncoder class Null safety

A simple encoder for CBOR.

Conversion is done with CborValue.CborValue. Check the CborValue.CborValue documentation for supported values.

If cyclic references are found while encoding, a CborCyclicError will be thrown.

This encoder supports startChunkedConversion and can therefore be used as a stream transformer.

Inheritance

Constructors

CborSimpleEncoder({bool dateTimeEpoch = false, Object? toEncodable(dynamic object)?})
const

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.
inherited
cast<RS, RT>() Converter<RS, RT>
Provides a Converter<RS, RT> view of this stream transformer.
inherited
convert(Object? input) List<int>
Converts input and returns the result of the conversion.
override
fuse<TT>(Converter<List<int>, TT> other) Converter<Object?, TT>
Fuses this with other.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
startChunkedConversion(Sink<List<int>> sink) Sink<Object?>
Starts a chunked conversion.
override
toString() String
A string representation of this object.
inherited

Operators

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