getContentWidget static method
Returns the appropriate widget for displaying the content based on its type.
Implementation
static Widget getContentWidget(String key, dynamic value) {
if (value is List) {
return TomlArrayViewer(value, key, notRoot: true);
} else {
return TomlObjectViewer(value, notRoot: true);
}
}