MONOCHROME property

PrintJobColorMode MONOCHROME
final

Monochrome color scheme, for example one color is used.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • MacOS

Implementation

static final MONOCHROME = PrintJobColorMode._internalMultiPlatform(1, () {
  switch (defaultTargetPlatform) {
    case TargetPlatform.android:
      return 1;
    case TargetPlatform.macOS:
      return 'Gray';
    default:
      break;
  }
  return null;
});