ExpandingTwoHalvesArcLoader constructor
const
ExpandingTwoHalvesArcLoader({})
Implementation
const ExpandingTwoHalvesArcLoader({
super.key,
this.size = 48.0,
this.strokeWidth = 5.0,
this.color1 = Colors.blue,
this.color2 = Colors.red,
this.rotationDurationMs = 1000,
this.expansionDurationMs = 2000,
}) : assert(size > 0, 'Size must be greater than 0.'),
assert(strokeWidth > 0 && strokeWidth < size / 3,
'Stroke width must be greater than 0 and less than size/3.'),
assert(rotationDurationMs >= 500,
'Rotation duration must be at least 500 milliseconds.'),
assert(expansionDurationMs >= 500,
'Expansion duration must be at least 500 milliseconds.');