JsonTreeViewer constructor

const JsonTreeViewer({
  1. Key? key,
  2. required dynamic data,
  3. bool expandedAll = false,
  4. Widget? expandableIcon,
  5. TextStyle? keyStyle,
  6. TextStyle? defaultValueStyle,
  7. TextStyle? stringValueStyle,
  8. TextStyle? numberValueStyle,
  9. TextStyle? trueValueStyle,
  10. TextStyle? falseValueStyle,
})

Implementation

const JsonTreeViewer(
    {Key? key,
    required this.data,
    this.expandedAll = false,
    this.expandableIcon,
    this.keyStyle,
    this.defaultValueStyle,
    this.stringValueStyle,
    this.numberValueStyle,
    this.trueValueStyle,
    this.falseValueStyle})
    : assert(data is Map || data is Iterable),
      super(key: key);