getContentWidget method
dynamic
getContentWidget(
- dynamic content
Implementation
getContentWidget(dynamic content) {
if (content == null)
return SelectableText('{}', onTap: (){
if(widget.onTap != null){
widget.onTap!('{}');
}
},);
else if (content is List) {
return JsonArrayViewer(content, notRoot: false,
controller: widget.subController,
openStateDefault: widget.subController.open,
onTap: widget.onTap);
} else {
return JsonObjectViewer(content, notRoot: false,
controller: widget.subController,
openStateDefault: widget.subController.open,
onTap: widget.onTap);
}
}