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
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}) 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