toStr method

String toStr({
  1. String def = '',
})

Implementation

String toStr({String def = ''}) {
  return this?.toString() ?? def;
}