shouldShowSingleScanButton property

bool get shouldShowSingleScanButton

When set to true, a button will be shown to the user in the lower left corner of the preview. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to BarcodeCountViewUiListener.didTapSingleScanButton().

By default this property is false.

Added in version 6.17.0

Implementation

bool get shouldShowSingleScanButton => _shouldShowSingleScanButton;
set shouldShowSingleScanButton (bool newValue)

When set to true, a button will be shown to the user in the lower left corner of the preview. The behavior for this button is left entirely to the developer, and does nothing by default. When clicked, this button triggers a call to BarcodeCountViewUiListener.didTapSingleScanButton().

By default this property is false.

Added in version 6.17.0

Implementation

set shouldShowSingleScanButton(bool newValue) {
  _shouldShowSingleScanButton = newValue;
  _updateNative();
}