thumbnail property

  1. @override
dynamic get thumbnail
override

Thumbnail preview of the image (Base64 encoded).

Used for quick preview without downloading the full image file.

Implementation

@override
TransportableFile? get thumbnail {
  TransportableFile? img = _thumbnail;
  if (img == null) {
    var uri = this['thumbnail'];
    img = TransportableFile.parse(uri);
    _thumbnail = img;
  }
  return img;
}
  1. @override
set thumbnail (dynamic img)
override

Implementation

@override
set thumbnail(TransportableFile? img) {
  remove('thumbnail');
  // this['thumbnail'] = img?.serialize();
  _thumbnail = img;
}