PinCode constructor

PinCode({
  1. required String title,
  2. String? subtitle,
  3. required dynamic onChange(
    1. String
    ),
  4. Color? backgroundColor,
  5. String? error,
  6. int codeLength = 6,
  7. bool obscurePin = false,
  8. TextStyle? titleTextStyle,
  9. TextStyle? subtitleTextStyle,
  10. TextStyle? errorTextStyle,
  11. TextStyle? keyTextStyle,
  12. TextStyle? codeTextStyle,
  13. KeyboardType keyboardType = KeyboardType.alphaNumeric,
})

Implementation

PinCode({
  /// Title of the pin code screen
  required this.title,

  /// Subtitle of the pin code screen
  this.subtitle,

  /// Callback function that is trigged on every key store.
  required this.onChange,

  /// Background color
  this.backgroundColor,

  /// Error message to be displayed on the sceen
  this.error,

  /// Length of the code, default is 6
  this.codeLength = 6,

  /// Weather to show the pin or hide it with *
  this.obscurePin = false,

  /// Text style for the title
  this.titleTextStyle,

  /// Text style for the subtitle
  this.subtitleTextStyle,

  /// Text style for the error
  this.errorTextStyle,

  /// Text style for the key
  this.keyTextStyle,

  /// Text style for the code
  this.codeTextStyle,

  /// Type of the keyboard
  this.keyboardType = KeyboardType.alphaNumeric,
});