# startMedicalCertificateScanner static method

Future<ResultWrapper<MedicalCertificateScanningResult>> startMedicalCertificateScanner(

1. MedicalCertificateScannerConfiguration config

)

Starts the Medical Certificate Scanner screen with the specified `config`.

Returns a MedicalCertificateScanningResult wrapped in ResultWrapper.

## Implementation

    static Future<ResultWrapper<MedicalCertificateScanningResult>>
        startMedicalCertificateScanner(
            MedicalCertificateScannerConfiguration config) async {
      try {
        var result = await _channel.invokeMethod(
            'startMedicalCertificateScanner', config.toJson());
        return ResultWrapper.fromJson(jsonDecode(result),
            fromJsonT: (data) => MedicalCertificateScanningResult.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());
      }
    }