bg method
Method for AI Background Generator @param Background prompt String (Default: YSBmb3Jlc3QgZnVsbCBvZiBvYWsgdHJlZXMsd2l0aCBicmlnaHQgbGlnaHRzLCBzdW4gYW5kIGEgbG90IG9mIG1hZ2ljLCB1bHRyYSByZWFsaXN0aWMsIDhr) @param focus Focus? (Default: Product) @param Negative prompt String (Default: ) @param seed int (Default: 123) @return TransformationData.
Implementation
TransformationData bg(
String? backgroundprompt,
Focus? focus,
String? negativeprompt,
int? seed,
) {
// Determine if there are values to add to the dictionary
var values = <String, String>{};
if (backgroundprompt != null) {
values['p'] = backgroundprompt.toString();
}
if (focus != null) {
values['f'] = focus.value;
}
if (negativeprompt != null) {
values['np'] = negativeprompt.toString();
}
if (seed != null) {
values['s'] = seed.toString();
}
return TransformationData(plugin: 'generate', name: 'bg', values: values);
}