toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  final String valueString = T == String ? '<\'$value\'>' : '<$value>';
  // The crazy on the next line is a workaround for
  // https://github.com/dart-lang/sdk/issues/33297
  if (runtimeType == _TypeLiteral<ValueKey<T>>().type)
    return '[$valueString]';
  return '[$T $valueString]';
}