defaultStringForOption method Null safety

String defaultStringForOption(
  1. dynamic option
)

The default way to convert an option to a string in displayStringForOption.

Simply uses the toString method on the option.

Implementation

static String defaultStringForOption(dynamic option) {
  return option.toString();
}