getTotalSize method

int getTotalSize()

Returns the total size of all assets in bytes.

Implementation

int getTotalSize() => assets.fold(0, (sum, asset) => sum + asset.info.size);