Spec-Zone.ru › Dart 2

dart:convert

Метод fuse<T>

Converter<Object?, T> fuse<T>(
  1. Converter<String, T> other
)
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);
}

© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-convert/JsonEncoder/fuse.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API