valueToString method

String valueToString(
  1. $Value? value
)

Implementation

String valueToString($Value? value) {
  if (value is $Instance) {
    final toString = value.$getProperty(this, 'toString');
    if (toString != null) {
      final result = (toString as EvalCallable).call(this, value, [value]);
      return result?.$value;
    }
  }
  return (value?.$value).toString();
}