fuse<T> 方法
override
将 this
与 other
熔合。
使用结果转换器的编码等效于先使用 this
编码,然后再使用 other
编码。
实现
Converter<Object?, T> fuse<T>(Converter<String, T> other) {
if (other is Utf8Encoder) {
// The instance check guarantees that `T` is (a subtype of) List<int>,
// but the static type system doesn't know that, and so we cast.
return JsonUtf8Encoder(indent, _toEncodable) as Converter<Object?, T>;
}
return super.fuse<T>(other);
}