bg method
Method for EraseBG Background Removal Module
industryType
: EraseIndustryType (Default: general)addShadow
: Add Shadow (Default: false)refine
: Refine (Default: true) Returns TransformationData.
Implementation
TransformationData bg(
EraseIndustryType? industryType,
bool? addShadow,
bool? refine,
) {
var values = <String, String>{};
if (industryType != null) {
values['i'] = industryType.value;
}
if (addShadow != null) {
values['shadow'] = addShadow.toString();
}
if (refine != null) {
values['r'] = refine.toString();
}
return TransformationData(plugin: 'erase', name: 'bg', values: values);
}