formatNullable function

String formatNullable(
  1. Object? value
)

Converts an Object to a string. Returns 'n/a' if the value is null.

Implementation

String formatNullable(Object? value) {
  return value?.toString() ?? 'n/a';
}