toPNG method

  1. @override
FutureOr<Uint8List> toPNG()
override

Returns the pixels of this as a PNG data.

Implementation

@override
FutureOr<Uint8List> toPNG() => img.encodePng(_bitmap, singleFrame: true);