toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  if (_nextTrain != null)
    return '$currentTrain\u27A9$runtimeType(next: $_nextTrain)';
  return '$currentTrain\u27A9$runtimeType(no next)';
}