MultiChildRenderObjectWidget constructor

MultiChildRenderObjectWidget({Key key, List<Widget> children: const [] })

Initializes fields for subclasses.

The children argument must not be null and must not contain any null objects.

Implementation

MultiChildRenderObjectWidget({ Key key, this.children = const <Widget>[] })
  : assert(children != null),
    assert(() {
      final int index = children.indexOf(null);
      if (index >= 0) {
        throw FlutterError(
          "$runtimeType's children must not contain any null values, "
          'but a null value was found at index $index'
        );
      }
      return true;
    }()), // https://github.com/dart-lang/sdk/issues/29276
    super(key: key);