WEBP property

CompressFormat WEBP
final

Compress to the WEBP lossy format. Quality of 0 means compress for the smallest size. 100 means compress for max visual quality.

Officially Supported Platforms/Implementations:

  • Android WebView
  • Windows WebView2

Implementation

static final WEBP = CompressFormat._internalMultiPlatform('WEBP', () {
  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
      return 'WEBP';
    case TargetPlatform.windows:
      return 'WEBP';
    default:
      break;
  }
  return null;
});