DividerThemeData class

Defines the visual properties of Divider, VerticalDivider, dividers between ListTiles, and dividers between rows in DataTables.

Descendant widgets obtain the current DividerThemeData object using DividerTheme.of(context). Instances of DividerThemeData can be customized with DividerThemeData.copyWith.

Typically a DividerThemeData is specified as part of the overall Theme with ThemeData.dividerTheme.

All DividerThemeData properties are null by default. When null, the widgets will provide their own defaults.

See also:

  • ThemeData, which describes the overall theme information for the application.
Mixed in types


DividerThemeData({Color color, double space, double thickness, double indent, double endIndent})
Creates a theme that can be used for DividerTheme or ThemeData.dividerTheme.


color Color
The color of Dividers and VerticalDividers, also used between ListTiles, between rows in DataTables, and so forth.
endIndent double
The amount of empty space at the trailing edge of Divider or bottom edge of VerticalDivider.
hashCode int
The hash code for this object. [...]
read-only, override
indent double
The amount of empty space at the leading edge of Divider or top edge of VerticalDivider.
space double
The Divider's width or the VerticalDivider's height. [...]
thickness double
The thickness of the line drawn within the divider.
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


copyWith({Color color, double space, double thickness, double indent, double endIndent}) DividerThemeData
Creates a copy of this object with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
toString({DiagnosticLevel minLevel: DiagnosticLevel.info}) String
Returns a string representation of this object.
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.


operator ==(Object other) bool
The equality operator. [...]

Static Methods

lerp(DividerThemeData a, DividerThemeData b, double t) DividerThemeData
Linearly interpolate between two Divider themes. [...]