BytesBitmap constructor

  1. @Deprecated('Use BytesMapBitmap instead')
const BytesBitmap({
  1. required Uint8List byteData,
  2. Size? size,
})

On the web, the size parameter represents the physical size of the bitmap, regardless of the actual resolution of the encoded PNG. This helps the browser to render High-DPI images at the correct size. size is not required (and ignored, if passed) in other platforms.

Implementation

@Deprecated('Use BytesMapBitmap instead')
const BytesBitmap({required Uint8List byteData, Size? size})
    : this._(byteData, kIsWeb ? size : null);