tint method

TransformationData tint(
  1. String? color
)

Method for Basic Transformations @param color String (Default: "000000") @return TransformationData.

Implementation

TransformationData tint(
  String? color,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

  if (color != null && color.isNotEmpty) {
    values['c'] = color;
  }

  return TransformationData(plugin: 't', name: 'tint', values: values);
}