structString property
String
get
structString
Implementation
String get structString {
var keyShow = '';
if (key != null) {
keyShow = '($key)';
}
if (childrenDef is Map) {
return '${_depthIntentSpace}Map$keyShow {\n${(childrenDef as Map).values.join(',\n')}\n$_depthIntentSpace}';
} else if (childrenDef is List) {
if ((childrenDef as List).isEmpty) {
return '${_depthIntentSpace}List<$listType>$keyShow []';
} else {
return '${_depthIntentSpace}List<$listType>$keyShow [\n${(childrenDef as List).join(',\n')}\n$_depthIntentSpace]';
}
} else {
return '$_depthIntentSpace$type$keyShow $childrenDef';
}
}