MetabadgeDecoration class

The decoration to customize Metabadge.

Constructor

Name Type Required Default Description
bodyColor Color Colors.green The background color of body.
headerColor Color Colors.black54 The background color of header.
radius double 0.0 How round the badge looks.
padding double 5.0 The spacing around the header and body.

Constructors

MetabadgeDecoration({Color? bodyColor = _defaultBodyColor, Color? headerColor = _defaultHeaderColor, double? radius = _defaultRadius, double? padding = _defaultPadding})
const

Properties

bodyColor Color?
final
hashCode int
The hash code for this object.
no setterinherited
headerColor Color?
final
padding double?
final
radius double?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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