encodeBytesAsDataURL property

  1. @protected
bool get encodeBytesAsDataURL
inherited

If true, a bytes (Uint8List) field is stored as a DataURLBase64 string, by normalizeEntityJSON.

The adapters that encode the objects as JSON (directory, GCS) need it, as JSON has no bytes type. DBObjectMemoryAdapter keeps the objects in memory, so it stores the bytes as they are (overriding it as false).

Implementation

@protected
bool get encodeBytesAsDataURL => true;