BarcodeItemOverlayViewConfig.create constructor
BarcodeItemOverlayViewConfig.create(})
Creates a view config with optional custom styles.
Implementation
factory BarcodeItemOverlayViewConfig.create(
BarcodeItem item, {
String? text,
BarcodeOverlayTextFormat? textFormat,
Color? polygonColor,
Color? strokeColor,
Color? highlightedPolygonColor,
Color? highlightedStrokeColor,
Color? textColor,
Color? textContainerColor,
Color? highlightedTextColor,
Color? highlightedTextContainerColor,
}) {
final uuid = _buildUuid(item);
return BarcodeItemOverlayViewConfig._internal(
barcodeUuid: uuid,
text: text,
textFormat: textFormat,
polygonColor: polygonColor,
strokeColor: strokeColor,
highlightedPolygonColor: highlightedPolygonColor,
highlightedStrokeColor: highlightedStrokeColor,
textColor: textColor,
textContainerColor: textContainerColor,
highlightedTextColor: highlightedTextColor,
highlightedTextContainerColor: highlightedTextContainerColor,
);
}