AntdProgressBase<Style extends AntdProgressBaseStyle, W> constructor

const AntdProgressBase<Style extends AntdProgressBaseStyle, W>({
  1. Key? key,
  2. Style? style,
  3. AntdStyleBuilder<Style, W>? styleBuilder,
  4. AntdColor? color,
  5. double percent = 0,
  6. Widget? child,
  7. double stroke = 3,
  8. void onChange(
    1. double percent
    )?,
  9. VoidCallback? onFinish,
  10. Duration duration = const Duration(milliseconds: 1000),
})

Implementation

const AntdProgressBase(
    {super.key,
    super.style,
    super.styleBuilder,
    this.color,
    this.percent = 0,
    this.child,
    this.stroke = 3,
    this.onChange,
    this.onFinish,
    this.duration = const Duration(milliseconds: 1000)})
    : assert(percent >= 0 && percent <= 100, 'Percent must be between 1-100');