StreamSplitButtonThemeData class

Theme data for customizing StreamSplitButton widgets.

Organizes split button styles by StreamSplitButtonVariant, so the destructive variant can be styled without touching the regular one.

{@tool snippet}

Customize split button appearance globally via StreamTheme:

StreamTheme(
  splitButtonTheme: StreamSplitButtonThemeData(
    regular: StreamSplitButtonStyle(separatorThickness: 2),
    destructive: StreamSplitButtonStyle(
      separatorColor: WidgetStatePropertyAll(Colors.white),
    ),
  ),
)

{@end-tool}

See also:

Annotations

Constructors

StreamSplitButtonThemeData({StreamSplitButtonStyle? regular, StreamSplitButtonStyle? destructive})
Creates split button theme data with optional style overrides per variant.
const
StreamSplitButtonThemeData.all(StreamSplitButtonStyle style)
Creates split button theme data that applies style to every variant.
const

Properties

canMerge bool
no setterinherited
destructive StreamSplitButtonStyle?
Styling for destructive (error/danger) split buttons.
final
hashCode int
The hash code for this object.
no setterinherited
regular StreamSplitButtonStyle?
Styling for regular (neutral surface) split buttons.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({StreamSplitButtonStyle? regular, StreamSplitButtonStyle? destructive}) StreamSplitButtonThemeData
inherited
merge(StreamSplitButtonThemeData? other) StreamSplitButtonThemeData
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
styleOf(StreamSplitButtonVariant variant) StreamSplitButtonStyle?
The styling for split buttons of the given variant.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

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