separatorBuilder property

IndexedWidgetBuilder separatorBuilder
final

A builder that creates separators to be placed between children in the row.

The separatorBuilder is called with the context and the index of the separator to be built. It should return a widget that serves as the separator between two children. The index is based on the child's position in the children list.

Example:

separatorBuilder: (BuildContext context, int index) {
  return Container(
    width: 1,
    color: Colors.grey,
  );
},

The separatorBuilder is required and should not be null.

Implementation

final IndexedWidgetBuilder separatorBuilder;