BadgeStyle class
Constructors
- BadgeStyle({BadgeShape shape = BadgeShape.circle, BorderRadius borderRadius = BorderRadius.zero, Color badgeColor = Colors.red, BorderSide borderSide = BorderSide.none, double elevation = 2, BadgeGradient? badgeGradient, BadgeGradient? borderGradient, EdgeInsetsGeometry padding = const EdgeInsets.all(5.0)})
-
const
Properties
- badgeColor → Color
-
Background color of the badge.
If
gradient
is not null, this property will be ignored.final - badgeGradient → BadgeGradient?
-
Background gradient color of the badge.
Will be used over badgeColor if not null.
final
- borderGradient → BadgeGradient?
-
Background gradient color of the border badge.
Will be used over
borderSide.color
if not null.final - borderRadius → BorderRadius
-
Allows to set border radius to this
badgeContent
. The default value is BorderRadius.zero.final - borderSide → BorderSide
-
Allows to set border side to this
badgeContent
. The default value is BorderSide.none.final - elevation → double
-
The size of the shadow below the badge.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- padding → EdgeInsetsGeometry
-
Specifies padding for
badgeContent
. The default value is EdgeInsets.all(5.0).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → BadgeShape
-
Allows to set the shape to this
badgeContent
. The default value is BadgeShape.circle.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