@@ -61,16 +61,16 @@ class RecognizeConfig {
6161 Uint8List ? livePortrait,
6262 Uint8List ? extPortrait,
6363 bool oneShotIdentification = false ,
64- }) : _scenario = scenario,
65- _onlineProcessingConfig = null ,
66- livePortrait = livePortrait,
67- extPortrait = extPortrait,
68- oneShotIdentification = oneShotIdentification,
69- image = image,
70- images = images,
71- data = data,
72- imageInputData = imageInputData,
73- dtc = dtc;
64+ }) : _scenario = scenario,
65+ _onlineProcessingConfig = null ,
66+ livePortrait = livePortrait,
67+ extPortrait = extPortrait,
68+ oneShotIdentification = oneShotIdentification,
69+ image = image,
70+ images = images,
71+ data = data,
72+ imageInputData = imageInputData,
73+ dtc = dtc;
7474
7575 RecognizeConfig .withOnlineProcessingConfig (
7676 OnlineProcessingConfig onlineProcessingConfig, {
@@ -82,16 +82,16 @@ class RecognizeConfig {
8282 Uint8List ? livePortrait,
8383 Uint8List ? extPortrait,
8484 bool oneShotIdentification = false ,
85- }) : _scenario = null ,
86- _onlineProcessingConfig = onlineProcessingConfig,
87- livePortrait = livePortrait,
88- extPortrait = extPortrait,
89- oneShotIdentification = oneShotIdentification,
90- image = image,
91- images = images,
92- data = data,
93- imageInputData = imageInputData,
94- dtc = dtc;
85+ }) : _scenario = null ,
86+ _onlineProcessingConfig = onlineProcessingConfig,
87+ livePortrait = livePortrait,
88+ extPortrait = extPortrait,
89+ oneShotIdentification = oneShotIdentification,
90+ image = image,
91+ images = images,
92+ data = data,
93+ imageInputData = imageInputData,
94+ dtc = dtc;
9595
9696 RecognizeConfig ._empty ();
9797
@@ -127,8 +127,7 @@ class RecognizeConfig {
127127 }
128128
129129 @visibleForTesting
130- Map <String , dynamic > toJson () =>
131- {
130+ Map <String , dynamic > toJson () => {
132131 "scenario" : scenario? .value,
133132 "onlineProcessingConfig" : onlineProcessingConfig? .toJson (),
134133 "image" : _bytesToBase64 (image),
@@ -159,16 +158,16 @@ class ImageInputData {
159158 Uint8List image, {
160159 Lights light = Lights .WHITE_FULL ,
161160 int pageIndex = 0 ,
162- }) : _image = image,
163- _light = light,
164- _pageIndex = pageIndex;
161+ }) : _image = image,
162+ _light = light,
163+ _pageIndex = pageIndex;
165164
166165 @visibleForTesting
167166 Map <String , dynamic > toJson () => {
168- "image" : _bytesToBase64 (image),
169- "light" : light.value,
170- "pageIndex" : pageIndex,
171- };
167+ "image" : _bytesToBase64 (image),
168+ "light" : light.value,
169+ "pageIndex" : pageIndex,
170+ };
172171
173172 @visibleForTesting
174173 static ImageInputData ? fromJson (jsonObject) {
0 commit comments