BarcodeItemOverlayViewConfig.create constructor

BarcodeItemOverlayViewConfig.create(
  1. BarcodeItem item, {
  2. String? text,
  3. BarcodeOverlayTextFormat? textFormat,
  4. Color? polygonColor,
  5. Color? strokeColor,
  6. Color? highlightedPolygonColor,
  7. Color? highlightedStrokeColor,
  8. Color? textColor,
  9. Color? textContainerColor,
  10. Color? highlightedTextColor,
  11. Color? highlightedTextContainerColor,
})

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,
  );
}