canWrite property

bool get canWrite

Whether this format can be created with BarcodeWriter.

Every format zxing-cpp creates (through zint) and reads back, except the EAN-2/EAN-5 add-ons (not symbols on their own), ITF-14 (zint draws its bearer bars against the bars) and MaxiCode (hexagonal modules). For a format picker use writable, which lists each kind of symbol once.

Implementation

bool get canWrite => _flags & _write != 0;