MotionBadgeWidget constructor

const MotionBadgeWidget({
  1. Key? key,
  2. bool? isIndicator,
  3. String? text,
  4. Color? textColor,
  5. double? size,
  6. Color? color,
  7. bool? disabled,
  8. bool? show,
})

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