modulate method
Method for Basic Transformations
brightness
: brightness (Default: 1)saturation
: saturation (Default: 1)hue
: hue (Default: 90) Returns TransformationData.
Implementation
TransformationData modulate(
double? brightness,
double? saturation,
int? hue,
) {
var values = <String, String>{};
if (brightness != null) {
values['b'] = brightness.toString();
}
if (saturation != null) {
values['s'] = saturation.toString();
}
if (hue != null) {
values['h'] = hue.toString();
}
return TransformationData(plugin: 't', name: 'modulate', values: values);
}