fromFlexBuffer function
Deserializes FlexBuffer bytes to any Dart value.
Returns null if the input bytes are null. The returned value can be
null, bool, int, double, String, List<dynamic>, Map<String, dynamic>,
or nested combinations of these.
Implementation
@pragma('vm:prefer-inline')
dynamic fromFlexBuffer(Uint8List? bytes) {
if (bytes == null) return null;
final ref = flex.Reference.fromBuffer(bytes.buffer);
return _convertReference(ref);
}