JsonWidgetBuilder constructor

JsonWidgetBuilder({
  1. bool preferredSizeWidget = false,
  2. required int numSupportedChildren,
})

Constructs the builder by stating whether the widget being built is a PreferredSizeWidget or not.

Implementation

JsonWidgetBuilder({
  this.preferredSizeWidget = false,
  required this.numSupportedChildren,
}) : assert(numSupportedChildren >= -1);