$String method

String $String(
  1. Object? value
)

Maps a value to a string.

(🚨) If the value is not a string, it will be converted to an empty string.

Implementation

String $String(Object? value) => value is String ? value : '';