GesturePasswordWidget constructor
GesturePasswordWidget({
- double size = 300.0,
- double identifySize = 50.0,
- Widget? normalItem,
- Widget? selectedItem,
- Widget? errorItem,
- Widget? hitItem,
- Widget? arrowItem,
- Widget? errorArrowItem,
- double arrowXAlign = 0.6,
- double arrowYAlign = 0.0,
- int singleLineCount = 3,
- Color? color,
- OnHitPoint? onHitPoint,
- OnComplete? onComplete,
- Color lineColor = Colors.green,
- Color errorLineColor = Colors.redAccent,
- double lineWidth = 2.0,
- List<
int> ? answer, - bool loose = true,
- int completeWaitMilliseconds = 300,
- int hitShowMilliseconds = 40,
- int? minLength,
Implementation
GesturePasswordWidget({
this.size = 300.0,
this.identifySize = 50.0,
this.normalItem,
this.selectedItem,
this.errorItem,
this.hitItem,
this.arrowItem,
this.errorArrowItem,
this.arrowXAlign = 0.6,
this.arrowYAlign = 0.0,
this.singleLineCount = 3,
this.color,
this.onHitPoint,
this.onComplete,
this.lineColor = Colors.green,
this.errorLineColor = Colors.redAccent,
this.lineWidth = 2.0,
this.answer,
this.loose = true,
this.completeWaitMilliseconds = 300,
this.hitShowMilliseconds = 40,
this.minLength,
}) : assert(singleLineCount > 1, 'singLineCount must not be smaller than 1'),
assert(identifySize > 0),
assert(size > identifySize),
assert(!(errorArrowItem != null && arrowItem == null), 'when arrowItem == null, errorArrowItem will not be shown.');