# BarcodeItemErrorState constructor

BarcodeItemErrorState({

1. StyledText? title,
2. StyledText? subtitle,
3. ButtonConfiguration? retryButton,
4. ButtonConfiguration? cancelButton,

})

## Implementation

    BarcodeItemErrorState({
      StyledText? title,
      StyledText? subtitle,
      ButtonConfiguration? retryButton,
      ButtonConfiguration? cancelButton,
    })  : title = title ??
              StyledText(
                  text: "Connection Error!",
                  color: ScanbotColor("?sbColorOnSurface")),
          subtitle = subtitle ??
              StyledText(
                  text:
                      "There was an issue and the data requested was not fetched. You could try again or discard this result to start a new scan.",
                  color: ScanbotColor("?sbColorOnSurfaceVariant")),
          retryButton = retryButton ?? ButtonConfiguration(),
          cancelButton = cancelButton ?? ButtonConfiguration();