TextWithBadgeButtonMode constructor

TextWithBadgeButtonMode({
  1. String accessibilityDescription = "?accessibilityDescriptionCameraPreviewButton",
  2. StyledText? text,
  3. BadgeStyle? pageCounter,
})

Implementation

TextWithBadgeButtonMode({
  this.accessibilityDescription =
      "?accessibilityDescriptionCameraPreviewButton",
  StyledText? text,
  BadgeStyle? pageCounter,
})  : text = text ??
          StyledText(
              text: "?cameraBadgedPreviewButtonTitle",
              color: ScanbotColor("?sbColorOnPrimary")),
      pageCounter = pageCounter ??
          BadgeStyle(
              visible: true,
              background: BackgroundStyle(
                  strokeColor: ScanbotColor("?sbColorSurface"),
                  fillColor: ScanbotColor("?sbColorSurface")),
              foregroundColor: ScanbotColor("?sbColorPrimary")),
      super();