setters method
Implementation
@override
Map<String, Function> setters() => Map<String, Function>.from(super.setters())
..addAll({
'initialCamera': (value) => initialCamera =
CameraFacing.values.from(Utils.optionalString(value)) ??
CameraFacing.back,
'formatsAllowed': (value) => formatsAllowed =
Utils.getListOfStrings(value)?.whereType<String>().toList() ?? [],
'overlayMargin': (value) => overlayMargin = Utils.optionalInsets(value),
'cutOutBorderWidth': (value) =>
cutOutBorderWidth = Utils.optionalInt(value),
'cutOutBorderRadius': (value) =>
cutOutBorderRadius = Utils.optionalInt(value),
'cutOutBorderLength': (value) =>
cutOutBorderLength = Utils.optionalInt(value),
'cutOutHeight': (value) => cutOutHeight = Utils.optionalInt(value),
'cutOutWidth': (value) => cutOutWidth = Utils.optionalInt(value),
'overlayColor': (color) => overlayColor = Utils.getColor(color),
'cutOutBorderColor': (color) => cutOutBorderColor = Utils.getColor(color),
'onInitialized': (func) =>
onInitialized = EnsembleAction.from(func, initiator: this),
'onReceived': (func) =>
onReceived = EnsembleAction.from(func, initiator: this),
'onPermissionSet': (func) =>
onPermissionSet = EnsembleAction.from(func, initiator: this),
});