GesturePasswordWidget constructor

GesturePasswordWidget({
  1. double size = 300.0,
  2. double identifySize = 50.0,
  3. Widget? normalItem,
  4. Widget? selectedItem,
  5. Widget? errorItem,
  6. Widget? hitItem,
  7. Widget? arrowItem,
  8. Widget? errorArrowItem,
  9. double arrowXAlign = 0.6,
  10. double arrowYAlign = 0.0,
  11. int singleLineCount = 3,
  12. Color? color,
  13. OnHitPoint? onHitPoint,
  14. OnComplete? onComplete,
  15. Color lineColor = Colors.green,
  16. Color errorLineColor = Colors.redAccent,
  17. double lineWidth = 2.0,
  18. List<int>? answer,
  19. bool loose = true,
  20. int completeWaitMilliseconds = 300,
  21. int hitShowMilliseconds = 40,
  22. 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.');