# startDocumentDataExtractor static method

Future<ResultWrapper<List<DocumentDataExtractionResult>>> startDocumentDataExtractor(

1. DocumentDataExtractorScreenConfiguration config

)

Opens the Document Data Extractor screen with the specified `config`.

Returns a DocumentDataExtractionResult wrapped in ResultWrapper.

## Implementation

    static Future<ResultWrapper<List<DocumentDataExtractionResult>>>
        startDocumentDataExtractor(
            DocumentDataExtractorScreenConfiguration config) async {
      try {
        final result = await _channel.invokeMethod(
            'startDocumentDataExtractor', config.toJson());

        return ResultWrapper.fromJson(
          jsonDecode(result),
          fromJsonT: (raw) => (raw as List)
              .map((e) => DocumentDataExtractionResult.fromJson(
                  e as Map<String, dynamic>))
              .toList(),
        );
      } on PlatformException catch (e) {
        Logger.root.severe('PlatformException', e);
        return ResultWrapper.error(e.message ?? 'Unknown platform error');
      } catch (e, stack) {
        Logger.root.severe('Unhandled Exception', e, stack);
        return ResultWrapper.error(e.toString());
      }
    }