ZetaAvatarBadge class

Badge component used with ZetaAvatar as either ZetaAvatar.upperBadge or ZetaAvatar.lowerBadge.

Sizes and styles are managed by the parent ZetaAvatar.

Inheritance
Available extensions

Constructors

ZetaAvatarBadge({Key? key, Color? color, ZetaAvatarBadgeType type = ZetaAvatarBadgeType.notification, IconData? icon, int? value, Color? iconColor})
Constructor for ZetaAvatarBadge
const
ZetaAvatarBadge.icon({Key? key, Color? color, IconData? icon = ZetaIcons.star, Color? iconColor, ZetaAvatarSize size = ZetaAvatarSize.xxxl})
Constructs ZetaAvatarBadge with icon
const
ZetaAvatarBadge.notification({Key? key, int? value})
Constructs ZetaAvatarBadge with notifications
const

Properties

color → Color?
Background color for badge
final
hashCode → int
The hash code for this object.
no setterinherited
icon → IconData?
Icon of badge
final
iconColor → Color?
Icon color for badge
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → ZetaAvatarSize
Size of badge
final
type → ZetaAvatarBadgeType
Type of badge
final
value → int?
Notification value for badge
final

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
copyWith({Color? color, ZetaAvatarSize? size, IconData? icon, Color? iconColor, int? value, ZetaAvatarBadgeType? type}) → ZetaAvatarBadge
Returns copy of ZetaAvatarBadge
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paddingAll(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on all sides.
paddingBottom(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Padding on bottom only.
paddingEnd(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Padding on start edge only. Is affected by whether the device is LTR or RTL:
paddingHorizontal(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on start and end.
paddingStart(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Padding on start edge only. Is affected by whether the device is LTR or RTL:
paddingTop(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Padding on top only.
paddingVertical(double space) → Widget

Available on Widget, provided by the SpacingWidget extension

Equal padding on top and bottom.
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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