EncodeExt typedef
Called by the Packer when it encounters a type it cannot natively handle.
Writes the extension data directly to the provided packer and returns
true if handled, or false if the object is not a registered custom type.
Implementation
typedef EncodeExt = bool Function(dynamic value, Packer packer);