StreamErrorBadgeThemeData class

Theme data for customizing StreamErrorBadge widgets.

Organizes badge colors by StreamErrorBadgeStyle, so the warning style can be styled without touching the error one.

{@tool snippet}

Customize badge appearance globally via StreamTheme:

StreamTheme(
  errorBadgeTheme: StreamErrorBadgeThemeData(
    warningBackgroundColor: Colors.amber,
    warningForegroundColor: Colors.black,
  ),
)

{@end-tool}

See also:

Annotations

Constructors

StreamErrorBadgeThemeData({StreamErrorBadgeSize? size, Color? errorBackgroundColor, Color? errorForegroundColor, Color? warningBackgroundColor, Color? warningForegroundColor, BoxBorder? border})
Creates an error badge theme with optional style overrides.
const

Properties

border → BoxBorder?
The border drawn around the badge.
final
canMerge → bool
no setterinherited
errorBackgroundColor → Color?
The fill color of badges of the StreamErrorBadgeStyle.error style.
final
errorForegroundColor → Color?
The icon color of badges of the StreamErrorBadgeStyle.error style.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → StreamErrorBadgeSize?
The default size for error badges.
final
warningBackgroundColor → Color?
The fill color of badges of the StreamErrorBadgeStyle.warning style.
final
warningForegroundColor → Color?
The icon color of badges of the StreamErrorBadgeStyle.warning style.
final

Methods

copyWith({StreamErrorBadgeSize? size, Color? errorBackgroundColor, Color? errorForegroundColor, Color? warningBackgroundColor, Color? warningForegroundColor, BoxBorder? border}) → StreamErrorBadgeThemeData
inherited
merge(StreamErrorBadgeThemeData? other) → StreamErrorBadgeThemeData
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