errorBuilder property

(Widget Function(BuildContext, MobileScannerException, Widget?)?) errorBuilder
final

The function that builds an error widget when the scanner could not be started.

If this is null, defaults to a black ColoredBox with a centered white Icons.error icon.

Implementation

final Widget Function(BuildContext, MobileScannerException, Widget?)?
    errorBuilder;