resolveToString method

String? resolveToString(
  1. Object? o, {
  2. String indent = '-- ',
})

Implementation

String? resolveToString(Object? o, {String indent = '-- '}) {
  if (o == null) {
    return null;
  } else if (o is Iterable) {
    return '$indent${o.map(resolveToString).nonNulls.join('\n$indent')}';
  } else if (o is TransactionOperation) {
    return o.toString();
  } else if (o is Function()) {
    return resolveToString(o());
  } else if (o is TransactionOperation) {
    return o.toString();
  } else {
    return o.toString();
  }
}