ScanbotAlertDialog constructor

ScanbotAlertDialog({
  1. StyledText? title,
  2. StyledText? subtitle,
  3. ScanbotColor? sheetColor,
  4. ScanbotColor? modalOverlayColor,
  5. ScanbotColor? dividerColor,
  6. required ButtonConfiguration okButton,
  7. required ButtonConfiguration cancelButton,
})

Implementation

ScanbotAlertDialog({
  StyledText? title,
  StyledText? subtitle,
  ScanbotColor? sheetColor,
  ScanbotColor? modalOverlayColor,
  ScanbotColor? dividerColor,
  required this.okButton,
  required this.cancelButton,
})  : title = title ??
          StyledText(text: "Title", color: ScanbotColor("?sbColorOnSurface")),
      subtitle = subtitle ??
          StyledText(
              text: "Standard explanation message text.",
              color: ScanbotColor("?sbColorOnSurfaceVariant")),
      sheetColor = sheetColor ?? ScanbotColor("?sbColorSurface"),
      modalOverlayColor =
          modalOverlayColor ?? ScanbotColor("?sbColorModalOverlay"),
      dividerColor = dividerColor ?? ScanbotColor("?sbColorOutline");