MHT property

WebArchiveFormat MHT
final

MHT (MIME HTML) is a web Archive format that saves a web page's HTML code, images, CSS, and scripts into one document, allowing for offline viewing.

Officially Supported Platforms/Implementations:

  • Android WebView
  • Linux WPE WebKit

Implementation

static final MHT = WebArchiveFormat._internalMultiPlatform('mht', () {
  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
      return 'mht';
    case TargetPlatform.linux:
      return 'mht';
    default:
      break;
  }
  return null;
});