DividerSettings class
Configuration for optional vertical dividers between tabs in GlassTabBar.
Dividers are rendered as thin vertical lines between tab items and can automatically hide themselves adjacent to the active tab.
Constructors
- DividerSettings({double indent = 0, double endIndent = 0, double thickness = 1, BoxDecoration? decoration, Duration? duration, Curve? curve, bool isHideAutomatically = true})
-
Creates a new DividerSettings.
const
Properties
- curve → Curve?
-
Curve of the show/hide animation. Defaults to Curves.easeInOut.
final
- decoration → BoxDecoration?
-
Optional custom decoration. Defaults to a white 20% opacity line.
final
- duration → Duration?
-
Duration of the show/hide animation. Defaults to 200ms.
final
- endIndent → double
-
Bottom indent of the divider line.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- indent → double
-
Top indent of the divider line.
final
- isHideAutomatically → bool
-
When true, dividers adjacent to the selected tab are hidden automatically.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- thickness → double
-
Width (thickness) of the divider line.
final
Methods
-
copyWith(
{double? indent, double? endIndent, double? thickness, BoxDecoration? decoration, Duration? duration, Curve? curve, bool? isHideAutomatically}) → DividerSettings - Returns a copy of this DividerSettings with the given fields replaced.
-
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