write method Null safety

  1. @override
void write(
  1. dynamic d
)
override

Writes a dynamic value into the buffer

  • d: the value to write

Implementation

@override
void write(dynamic d) {
  if (!_writeObject(d)) {
    try {
      _writeEncodable(_toEncodable(d));
    } on NoSuchMethodError {
      throw MsgPackUnsupportedObjectError(d);
    }
  }
}