RoundButton constructor

RoundButton({
  1. bool visible = true,
  2. String accessibilityDescription = "",
  3. ScanbotColor? backgroundColor,
  4. ScanbotColor? foregroundColor,
  5. ScanbotColor? activeBackgroundColor,
  6. ScanbotColor? activeForegroundColor,
})

Implementation

RoundButton({
  this.visible = true,
  this.accessibilityDescription = "",
  ScanbotColor? backgroundColor,
  ScanbotColor? foregroundColor,
  ScanbotColor? activeBackgroundColor,
  ScanbotColor? activeForegroundColor,
})  : backgroundColor = backgroundColor ?? ScanbotColor("#0000007A"),
      foregroundColor = foregroundColor ?? ScanbotColor("#FFFFFF"),
      activeBackgroundColor =
          activeBackgroundColor ?? ScanbotColor("#FFCE5C"),
      activeForegroundColor =
          activeForegroundColor ?? ScanbotColor("#1C1B1F");