LockScreen constructor

LockScreen({
  1. required VoidCallback onSuccess,
  2. required String title,
  3. Color? borderColor,
  4. Color? foregroundColor = Colors.transparent,
  5. required int passLength,
  6. required PassCodeVerify passCodeVerify,
  7. VoidCallback? fingerFunction,
  8. bool? fingerVerify = false,
  9. bool? showFingerPass = false,
  10. String? bgImage,
  11. Color? numColor = Colors.black,
  12. Widget? fingerPrintImage,
  13. bool? showWrongPassDialog = false,
  14. String? wrongPassTitle,
  15. String? wrongPassContent,
  16. String? wrongPassCancelButtonText,
})

Lock Screen constructer

Implementation

LockScreen({
  required this.onSuccess,
  required this.title,
  this.borderColor,
  this.foregroundColor = Colors.transparent,
  required this.passLength,
  required this.passCodeVerify,
  this.fingerFunction,
  this.fingerVerify = false,
  this.showFingerPass = false,
  this.bgImage,
  this.numColor = Colors.black,
  this.fingerPrintImage,
  this.showWrongPassDialog = false,
  this.wrongPassTitle,
  this.wrongPassContent,
  this.wrongPassCancelButtonText,
})  : assert(passLength <= 8),
      assert(bgImage != null),
      assert(borderColor != null),
      assert(foregroundColor != null);