Divider class

A thin horizontal line, with padding on either side.

In the Material Design language, this represents a divider. Dividers can be used in lists, Drawers, and elsewhere to separate content.

To create a divider between ListTile items, consider using ListTile.divideTiles, which is optimized for this case.

The box's total height is controlled by height. The appropriate padding is automatically computed from the height.

This sample shows how to display a Divider between an orange and blue box inside a column. The Divider is 20 logical pixels in height and contains a vertically centered black line that is 5 logical pixels thick. The black line is indented by 20 logical pixels.