File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ enum MobileScannerErrorCode {
2727 /// Scanning is unsupported on the current device.
2828 unsupported;
2929
30+ /// Get the human-readable message for the error code.
3031 String get message {
3132 switch (this ) {
3233 case MobileScannerErrorCode .controllerUninitialized:
Original file line number Diff line number Diff line change 1+ /// @docImport 'package:mobile_scanner/src/mobile_scanner.dart';
2+ library ;
3+
14import 'package:flutter/foundation.dart' ;
25import 'package:flutter/material.dart' ;
3- import 'package:mobile_scanner/mobile_scanner.dart' ;
6+ import 'package:mobile_scanner/src/enums/mobile_scanner_error_code.dart' ;
7+ import 'package:mobile_scanner/src/mobile_scanner_exception.dart' ;
48
9+ /// This widget represents the default error widget for the [MobileScanner] widget.
510class ScannerErrorWidget extends StatelessWidget {
11+ /// Creates a new [ScannerErrorWidget] for the given [error] .
612 const ScannerErrorWidget ({super .key, required this .error});
713
14+ /// The error that occurred.
815 final MobileScannerException error;
916
1017 @override
You can’t perform that action at this time.
0 commit comments