toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  final StringBuffer result = StringBuffer();
  result.write('TableRow(');
  if (key != null)
    result.write('$key, ');
  if (decoration != null)
    result.write('$decoration, ');
  if (children == null) {
    result.write('child list is null');
  } else if (children.isEmpty) {
    result.write('no children');
  } else {
    result.write('$children');
  }
  result.write(')');
  return result.toString();
}