DividerTheme class
Theme data for customizing Divider widget appearance.
This class defines the visual properties that can be applied to Divider widgets, including line color, dimensions, spacing, and child padding. These properties can be set at the theme level to provide consistent styling across the application.
Constructors
- DividerTheme({Color? color, double? height, double? thickness, double? indent, double? endIndent, EdgeInsetsGeometry? padding})
-
Creates a DividerTheme.
const
Properties
- color → Color?
-
Color of the divider line.
final
- endIndent → double?
-
Empty space to the trailing edge of the divider.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double?
-
Height of the divider widget.
final
- indent → double?
-
Empty space to the leading edge of the divider.
final
- padding → EdgeInsetsGeometry?
-
Padding around the Divider.child.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thickness → double?
-
Thickness of the divider line.
final
Methods
-
copyWith(
{ValueGetter< Color?> ? color, ValueGetter<double?> ? height, ValueGetter<double?> ? thickness, ValueGetter<double?> ? indent, ValueGetter<double?> ? endIndent, ValueGetter<EdgeInsetsGeometry?> ? padding}) → DividerTheme - Creates a copy of this theme but with the given fields replaced by the new values.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override