StreamSplitButtonProps class
Properties for configuring a StreamSplitButton.
This class holds all the configuration options for a split button, allowing them to be passed through the StreamComponentFactory.
See also:
- StreamSplitButton, which uses these properties.
- DefaultStreamSplitButton, the default implementation.
Constructors
- StreamSplitButtonProps({required Widget leadingIcon, required Widget trailingIcon, VoidCallback? onLeadingPressed, VoidCallback? onTrailingPressed, StreamSplitButtonVariant variant = .regular, String? leadingTooltip, String? trailingTooltip, StreamSplitButtonStyle? themeStyle})
-
Creates properties for a split button.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- leadingIcon → Widget
-
The icon rendered in the leading half.
final
- leadingTooltip → String?
-
Text shown in a Tooltip on hover / long-press of the leading half, and
used as its accessibility label.
final
- onLeadingPressed → VoidCallback?
-
Called when the leading half is pressed.
final
- onTrailingPressed → VoidCallback?
-
Called when the trailing half is pressed.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- themeStyle → StreamSplitButtonStyle?
-
Per-instance style overrides for this split button.
final
- trailingIcon → Widget
-
The icon rendered in the secondary (trailing) half.
final
- trailingTooltip → String?
-
Text shown in a Tooltip on hover / long-press of the trailing half, and
used as its accessibility label.
final
- variant → StreamSplitButtonVariant
-
The visual variant of the split button.
final
Methods
-
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