DefaultChipBuilder class
Simple badge with num inside.
- Inheritance
-
- Object
- ChipBuilder
- DefaultChipBuilder
Constructors
-
DefaultChipBuilder.new(Map<
int, dynamic> chips, {required Color textColor, required Color badgeColor, required EdgeInsets padding, required EdgeInsets margin, required double borderRadius}) - Create a chip builder
Properties
- badgeColor → Color
-
Color of the badge chip.
final
- borderRadius → double
-
Radius corner for badge.
final
-
chips
→ Map<
int, dynamic> -
key-value map, stands for the badge data.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- margin → EdgeInsets
-
Margin for badge.
final
- padding → EdgeInsets
-
Padding for badge.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textColor → Color
-
Color of badge text.
final
Methods
-
asBadge(
dynamic chip) → Widget - Convert a chip data into Widget.
-
build(
BuildContext _, Widget child, int i, bool active) → Widget -
Construct a new widget which represent the tab item with custom badge.
override
-
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