LCOV - code coverage report
Current view: top level - entities - open.camera.request.dart (source / functions) Hit Total Coverage
Test: lcov.info Lines: 0 23 0.0 %
Date: 2022-06-06 13:58:49 Functions: 0 0 -

          Line data    Source code
       1             : import 'package:unico_check/src/clean/domain/entities/document.type.dart';
       2             : import 'package:unico_check/src/clean/domain/entities/unico.config.dart';
       3             : import 'package:unico_check/src/clean/domain/entities/unico.theme.dart';
       4             : 
       5             : class OpenCameraRequest {
       6             :   late UnicoTheme _unicoTheme;
       7             :   late String _jsonFileName;
       8             :   late bool _autoCapture = true;
       9             :   late bool _smartFrame = true;
      10             :   late double _timeoutSession;
      11             :   late DocumentType _documentType = DocumentType.NONE;
      12             :   late UnicoConfig _unicoConfig;
      13             : 
      14           0 :   void setUnicoTheme(UnicoTheme unicoTheme) {
      15           0 :     _unicoTheme = unicoTheme;
      16             :   }
      17             : 
      18           0 :   void setJsonFilneName(String jsonFileName) {
      19           0 :     _jsonFileName = jsonFileName;
      20             :   }
      21             : 
      22           0 :   void setAutoCaptrue(bool autoCaptrue) {
      23           0 :     _autoCapture = autoCaptrue;
      24             :   }
      25             : 
      26           0 :   void setSmartFrame(bool smartFrame) {
      27           0 :     _smartFrame = smartFrame;
      28             :   }
      29             : 
      30           0 :   void setTimeoutSession(double timeoutSession) {
      31           0 :     _timeoutSession = timeoutSession;
      32             :   }
      33             : 
      34           0 :   void setDocumentType(DocumentType documentType) {
      35           0 :     _documentType = documentType;
      36             :   }
      37             : 
      38           0 :   void setUnicoConfig(UnicoConfig unicoConfig) {
      39           0 :     _unicoConfig = unicoConfig;
      40             :   }
      41             : 
      42           0 :   Map<dynamic, dynamic> get getOpenCameraRequest {
      43           0 :     return <dynamic, dynamic>{
      44           0 :       'json_file_name': _jsonFileName,
      45           0 :       'unico_theme': _unicoTheme.getCommonMap,
      46           0 :       'set_auto_capture': _autoCapture,
      47           0 :       'set_smart_frame': _smartFrame,
      48           0 :       'set_timeout_session': _timeoutSession,
      49           0 :       'document_type': _documentType.name,
      50           0 :       'unico_config': _unicoConfig.getCommonMap
      51             :     };
      52             :   }
      53             : }

Generated by: LCOV version 1.16