# startMrzScanner static method

Future<ResultWrapper<MrzScannerUiResult>> startMrzScanner(

1. MrzScannerScreenConfiguration config

)

Starts the MRZ (Machine Readable Zone) Scanner UI with the provided `config`.

Returns a ResultWrapper containing a MrzScannerUiResult on success, or an error if the operation fails.

## Implementation

    static Future<ResultWrapper<MrzScannerUiResult>> startMrzScanner(
        MrzScannerScreenConfiguration config) async {
      try {
        var result = await ScanbotSdk.channel
            .invokeMethod('startMrzScanner', config.toJson());
        return ResultWrapper.fromJson(jsonDecode(result),
            fromJsonT: (data) =>
                MrzScannerUiResult.fromJson(data as Map<String, dynamic>));
      } on PlatformException catch (e) {
        Logger.root.severe(e);
        return ResultWrapper.error(e.message ?? 'Unknown platform error');
      } on Exception catch (e) {
        return ResultWrapper.error(e.toString());
      }
    }