tint method

TransformationData tint(
  1. String? color
)

Method for Basic Transformations

  • color : color (Default: "000000")

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