PrismBannerStyle class

Visual configuration for PrismBanner.

Annotations

Constructors

PrismBannerStyle({Color? color, Color? foregroundColor, double? borderRadius, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, TextStyle? titleStyle, TextStyle? messageStyle})
Creates a style.
const

Properties

borderRadius → double?
Corner radius of the banner card. Defaults to PrismTokens.radiusMd.
final
color → Color?
Background color; defaults to the severity's container color.
final
foregroundColor → Color?
Text/icon color; defaults to the severity's on-container color.
final
hashCode → int
The hash code for this object.
no setterinherited
margin → EdgeInsetsGeometry?
Outer margin around the banner. Derived from PrismTokens by default.
final
messageStyle → TextStyle?
Style for PrismAnnouncement.message.
final
padding → EdgeInsetsGeometry?
Inner padding. Derived from PrismTokens by default.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
titleStyle → TextStyle?
Style for PrismAnnouncement.title.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(BuildContext context) → PrismBannerStyle
Returns a copy with unset fields filled from PrismTokens.
toString() → String
A string representation of this object.
inherited

Operators

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