toStrN static method

String? toStrN(
  1. dynamic d
)

Converts a dynamic value to a nullable String.

d - The dynamic value to be converted. Returns a String if the conversion is successful, otherwise null.

Implementation

static String? toStrN(dynamic d) {
  return d != null ? d.toString() : null;
}