modulate method

TransformationData modulate(
  1. double? brightness,
  2. double? saturation,
  3. int? hue
)

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);
}