MotionBadgeWidget constructor
const
MotionBadgeWidget({})
Implementation
const MotionBadgeWidget({
Key? key,
bool? isIndicator,
this.text,
Color? textColor,
double? size,
Color? color,
bool? disabled,
bool? show,
}) : this._isIndicator = isIndicator ?? false,
this._color = color ?? Colors.red,
this._textColor = textColor ?? Colors.white,
this._size = size ?? (isIndicator == true ? 5 : 18),
this._disabled = disabled ?? false,
this._show = show != null ? show : true,
assert(text != null ? text.length <= 3 : true),
super(key: key);