linear method

TransformationData linear(
  1. int? a,
  2. int? b
)

Method for Basic Transformations @param a int (Default: 1) @param b int (Default: 0) @return TransformationData.

Implementation

TransformationData linear(
  int? a,
  int? b,
) {
  // Determine if there are values to add to the dictionary

  var values = <String, String>{};

  if (a != null) {
    values['a'] = a.toString();
  }

  if (b != null) {
    values['b'] = b.toString();
  }

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