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