ProgressUic constructor

const ProgressUic({
  1. Key? key,
  2. Widget? child,
  3. Color? color,
  4. Color dimColor = Colors.black38,
  5. bool dimContent = false,
  6. bool inProgress = true,
  7. bool looseConstraints = false,
  8. double? size,
  9. String? text = '',
  10. ProgressUicTextLocation textLocation = ProgressUicTextLocation.bottom,
  11. TextStyle? textStyle,
})

Implementation

const ProgressUic({
  Key? key,
  this.child,
  this.color,
  this.dimColor = Colors.black38,
  this.dimContent = false,
  this.inProgress = true,
  this.looseConstraints = false,
  this.size,
  this.text = '',
  this.textLocation = ProgressUicTextLocation.bottom,
  this.textStyle,
})  : assert(!(!inProgress && child == null),
          "You must define 'child', when 'inProgress' is false"),
      assert(!(inProgress && dimContent && child == null),
          "You must define 'child', when 'dimContent' is true"),
      super(key: key);