toMap method
Implementation
@override
Map<String, dynamic> toMap() {
return {
'SparkScanView': {
'viewSettings': _settings.toMap(),
'torchControlVisible': torchControlVisible,
'scanningBehaviorButtonVisible': scanningBehaviorButtonVisible,
'toolbarBackgroundColor': toolbarBackgroundColor?.jsonValue,
'barcodeCountButtonVisible': barcodeCountButtonVisible,
'barcodeFindButtonVisible': barcodeFindButtonVisible,
'targetModeButtonVisible': targetModeButtonVisible,
'toolbarIconActiveTintColor': toolbarIconActiveTintColor?.jsonValue,
'toolbarIconInactiveTintColor': toolbarIconInactiveTintColor?.jsonValue,
'zoomSwitchControlVisible': zoomSwitchControlVisible,
'previewSizeControlVisible': previewSizeControlVisible,
'hasFeedbackDelegate': _feedbackDelegate != null,
'cameraSwitchButtonVisible': cameraSwitchButtonVisible,
'triggerButtonImage': _triggerButtonImage,
'previewCloseControlVisible': previewCloseControlVisible,
'triggerButtonCollapsedColor': triggerButtonCollapsedColor?.jsonValue,
'triggerButtonExpandedColor': triggerButtonExpandedColor?.jsonValue,
'triggerButtonAnimationColor': triggerButtonAnimationColor?.jsonValue,
'triggerButtonTintColor': triggerButtonTintColor?.jsonValue,
},
'SparkScan': _sparkScan.toMap(),
};
}