setters method

  1. @override
Map<String, Function> setters()
override

Implementation

@override
Map<String, Function> setters() {
  return {
    'instantPreview': (value) =>
        _controller.instantPreview = Utils.getBool(value, fallback: false),
    'mode': (value) => _controller.initCameraMode(value),
    'initialCamera': (value) => _controller.initCameraOption(value),
    'allowGalleryPicker': (value) =>
        _controller.allowGallery = Utils.getBool(value, fallback: false),
    'allowCameraRotate': (value) =>
        _controller.allowCameraRotate = Utils.getBool(value, fallback: false),
    'allowFlashControl': (value) =>
        _controller.allowFlashControl = Utils.getBool(value, fallback: false),
    'minCount': (value) => _controller.minCount = Utils.optionalInt(value),
    'maxCount': (value) => _controller.maxCount = Utils.optionalInt(value),
    'preview': (value) =>
        _controller.preview = Utils.getBool(value, fallback: false),
    'minCountMessage': (value) =>
        _controller.minCountMessage = Utils.optionalString(value),
    'maxCountMessage': (value) =>
        _controller.maxCountMessage = Utils.optionalString(value),
    'permissionDeniedMessage': (value) =>
        _controller.permissionDeniedMessage = Utils.optionalString(value),
    'nextButtonLabel': (value) =>
        _controller.nextButtonLabel = Utils.optionalString(value),
    'accessButtonLabel': (value) =>
        _controller.accessButtonLabel = Utils.optionalString(value),
    'galleryButtonLabel': (value) =>
        _controller.galleryButtonLabel = Utils.optionalString(value),
    'imagePickerIcon': (value) =>
        _controller.imagePickerIcon = Utils.getIcon(value),
    'cameraRotateIcon': (value) =>
        _controller.cameraRotateIcon = Utils.getIcon(value),
    'focusIcon': (value) => _controller.focusIcon = Utils.getIcon(value),
    'assistAngle': (value) =>
        _controller.assistAngle = Utils.getBool(value, fallback: false),
    'assistSpeed': (value) =>
        _controller.assistSpeed = Utils.getBool(value, fallback: false),
    'maxSpeed': (value) =>
        _controller.maxSpeed = Utils.getDouble(value, fallback: 30),
    'maxAngle': (value) =>
        _controller.maxAngle = Utils.getDouble(value, fallback: 180),
    'minAngle': (value) =>
        _controller.minAngle = Utils.getDouble(value, fallback: -180),
    'assistAngleMessage': (value) =>
        _controller.assistAngleMessage = Utils.optionalString(value),
    'assistSpeedMessage': (value) =>
        _controller.assistSpeedMessage = Utils.optionalString(value),
    'autoCaptureInterval': (value) =>
        _controller.autoCaptureInterval = Utils.getInt(value, fallback: -1),
    'enableMicrophone': (value) =>
        _controller.enableMicrophone = Utils.getBool(value, fallback: true),
    'captureOverlay': (value) =>
        _controller.captureOverlay = Utils.getBool(value, fallback: false),
  };
}