toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  var constructor = using;
  switch (using) {
    case 'link text':
      constructor = 'linkText';
      break;
    case 'partial link text':
      constructor = 'partialLinkText';
      break;
    case 'tag name':
      constructor = 'tagName';
      break;
    case 'class name':
      constructor = 'className';
      break;
    case 'css selector':
      constructor = 'cssSelector';
      break;
  }
  return 'By.$constructor($value)';
}