StreamSplitButtonStyle class

Visual styling properties for a single StreamSplitButtonVariant.

A split button paints one shared surface behind two StreamButton halves. That surface is derived from the same StreamButtonTheme entry the halves use, so the two can never drift apart; buttonStyle adjusts both at once. The remaining properties describe the divider between the halves.

See also:

Annotations

Constructors

StreamSplitButtonStyle({StreamButtonThemeStyle? buttonStyle, WidgetStateProperty<Color?>? separatorColor, double? separatorThickness, double? separatorHeight})
Creates split button style properties.
const

Properties

buttonStyle StreamButtonThemeStyle?
Per-instance style overrides for the split button.
final
canMerge bool
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
separatorColor WidgetStateProperty<Color?>?
The color of the divider between the two halves.
final
separatorHeight double?
The height of the divider between the two halves, in logical pixels.
final
separatorThickness double?
The width of the divider between the two halves, in logical pixels.
final

Methods

copyWith({StreamButtonThemeStyle? buttonStyle, WidgetStateProperty<Color?>? separatorColor, double? separatorThickness, double? separatorHeight}) StreamSplitButtonStyle
inherited
merge(StreamSplitButtonStyle? other) StreamSplitButtonStyle
inherited
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.
inherited

Static Methods

lerp(StreamSplitButtonStyle? a, StreamSplitButtonStyle? b, double t) StreamSplitButtonStyle?
Linearly interpolate between two StreamSplitButtonStyle objects.