toString function

String toString(
  1. Object? input
)

convert the input to a string

Implementation

String toString(Object? input) {
  if (input == null || (input is List && input.isEmpty)) {
    input = '';
  }
  return input.toString();
}