Skip to content

Commit 728d8fe

Browse files
committed
chore: fix docs
1 parent e15333e commit 728d8fe

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/src/enums/mobile_scanner_error_code.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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:

lib/src/objects/scanner_error_widget.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
/// @docImport 'package:mobile_scanner/src/mobile_scanner.dart';
2+
library;
3+
14
import 'package:flutter/foundation.dart';
25
import '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.
510
class 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

0 commit comments

Comments
 (0)