size property

int? size

Gets the size of the object in bytes.

Returns: The size integer or null.

Implementation

int? get size {
  final raw = this._metadata["size"];
  if (raw is int) return raw;
  if (raw is num) return raw.toInt();
  if (raw is String) return int.tryParse(raw);
  return null;
}