equalsParameters method

bool equalsParameters(
  1. List? parameters
)

Returns true if parameters are equals to this.parameters.

Implementation

bool equalsParameters(List? parameters) {
  var thisParameters = this.parameters;
  if (thisParameters == null) {
    return parameters == null;
  }

  if (parameters == null) {
    return false;
  }

  if (thisParameters.length != parameters.length) {
    return false;
  }

  var length = parameters.length;

  for (var i = 0; i < length; ++i) {
    var a = thisParameters[i];
    var b = parameters[i];

    if (identical(a, b)) continue;

    if (!_deepCollectionEquality.equals(a, b)) {
      return false;
    }
  }

  return true;
}