PinCode constructor
PinCode({
- required String title,
- String? subtitle,
- required dynamic onChange(),
- Color? backgroundColor,
- String? error,
- int codeLength = 6,
- bool obscurePin = false,
- TextStyle? titleTextStyle,
- TextStyle? subtitleTextStyle,
- TextStyle? errorTextStyle,
- TextStyle? keyTextStyle,
- TextStyle? codeTextStyle,
- 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,
});