toDebugString method
String
toDebugString(
)
override
Implementation
@override
String toDebugString() {
final sb = StringBuffer();
"WebDavStdResource{path:$path,status:$status,"
"${error != null ? 'error:$error,' : ''}"
"${desc != null ? 'desc:desc,' : ''}"
"props(${_props.length}):${_props.keys.toList()}"
"}";
sb.writeln("WebDavStdResource{");
sb.writeln(" path:$path | status:$status,");
if (error != null) sb.writeln(" err:$error,");
if (desc != null) sb.writeln(" desc:$desc,");
sb.writeln(" props(${_props.length}):");
for (var entry in _props.entries) {
sb.write(" ");
if (entry.key.ns != null) sb.write("[${entry.key.ns}]");
sb.write("${entry.key.name}: ");
sb.writeln("${entry.value.toDebugString()},");
}
sb.write("}");
return sb.toString();
}