encodeContent method
Encode the contents to bool array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included.
@param contents barcode contents to encode @return a {@code List
Implementation
@override
List<bool> encodeContent(
String contents, [
EncodeHint? hints,
]) {
final forcedCodeSet = _check(contents, hints);
final hasCompactionHint = hints?.code128Compact ?? false;
return hasCompactionHint
? MinimalEncoder().encode(contents)
: encodeFast(contents, hints, forcedCodeSet);
}