VanLoading constructor

const VanLoading({
  1. Key? key,
  2. Color color = VanColor.gray5,
  3. LoadingType type = LoadingType.circular,
  4. double size = 25,
  5. String text = '',
  6. double textSize = 14,
  7. dynamic textColor,
  8. bool vertical = false,
})

Implementation

const VanLoading({
  Key? key,
  this.color = VanColor.gray5,
  this.type = LoadingType.circular,
  this.size = 25,
  this.text = '',
  this.textSize = 14,
  textColor,
  this.vertical = false,
})  : textColor =
          textColor ?? (color == VanColor.gray5 ? VanColor.gray6 : color),
      super(key: key);