lookup static method
Implementation
static SymbolInfo? lookup(
int dataCodewords, [
Object? shapeOrIsRect,
Object? minSizeOrFail,
Dimension? maxSize,
bool fail = true,
]) {
late SymbolShapeHint shape;
Dimension? minSize;
if (shapeOrIsRect is bool) {
shape = shapeOrIsRect
? SymbolShapeHint.forceNone
: SymbolShapeHint.forceSquare;
} else {
shape = shapeOrIsRect == null
? SymbolShapeHint.forceNone
: (shapeOrIsRect as SymbolShapeHint);
}
if (minSizeOrFail is bool) {
fail = minSizeOrFail;
} else {
minSize = minSizeOrFail as Dimension?;
}
return _lookup(dataCodewords, shape, minSize, maxSize, fail);
}