StatusChangeTileBuilder.connected constructor Null safety

StatusChangeTileBuilder.connected(
  1. {required int itemCount,
  2. IndexedWidgetBuilder? nameWidgetBuilder,
  3. IndexedWidgetBuilder? contentWidgetBuilder,
  4. IndexedWidgetBuilder? indicatorWidgetBuilder,
  5. dynamic lineWidgetBuilder(
    1. int index
    )?,
  6. dynamic itemWidth(
    1. int index
    )?}
)

Implementation

factory StatusChangeTileBuilder.connected({
  required int itemCount,
  IndexedWidgetBuilder? nameWidgetBuilder,
  IndexedWidgetBuilder? contentWidgetBuilder,
  IndexedWidgetBuilder? indicatorWidgetBuilder,
  Function(int index)? lineWidgetBuilder,
  Function(int index)? itemWidth,
}) {
  return StatusChangeTileBuilder(
    itemCount: itemCount,
    contentsBuilder: nameWidgetBuilder,
    oppositeContentsBuilder: contentWidgetBuilder,
    indicatorBuilder: indicatorWidgetBuilder,
    startConnectorBuilder: _createConnectedStartConnectorBuilder(
      connectorBuilder: lineWidgetBuilder,
    ),
    endConnectorBuilder: _createConnectedEndConnectorBuilder(
      connectorBuilder: lineWidgetBuilder,
      itemCount: itemCount,
    ),
    itemExtentBuilder: itemWidth,
  );
}