getContentWidget static method

dynamic getContentWidget(
  1. dynamic content,
  2. JsonViewerThemeData theme
)

Implementation

static getContentWidget(dynamic content, JsonViewerThemeData theme) {
  if (content is List) {
    return JsonArrayViewer(
      content,
      notRoot: true,
      theme: theme,
    );
  } else {
    return JsonObjectViewer(
      content,
      notRoot: true,
      theme: theme,
    );
  }
}