AntdProgressBase<Style extends AntdProgressBaseStyle, W> constructor
const
AntdProgressBase<Style extends AntdProgressBaseStyle, W> ({
- Key? key,
- Style? style,
- AntdStyleBuilder<
Style, W> ? styleBuilder, - AntdColor? color,
- double percent = 0,
- Widget? child,
- double stroke = 3,
- void onChange(
- double percent
- VoidCallback? onFinish,
- 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');