getContentWidget static method

Widget getContentWidget(
  1. String key,
  2. dynamic value
)

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);
  }
}