toString method Null safety

String toString ()
override

Returns either "true" for true and "false" for false.

Implementation

String toString() {
  return this ? "true" : "false";
}