PasswordPaint constructor
PasswordPaint({
- required String text,
- required int passwordLength,
- required PasswordDecoration decoration,
- PasswordEntryType type = PasswordEntryType.boxTight,
- required ThemeData themeData,
Implementation
PasswordPaint({
required this.text,
required this.passwordLength,
required PasswordDecoration decoration,
this.type: PasswordEntryType.boxTight,
required this.themeData,
}) : this.decoration = decoration.copyWith(
textStyle: decoration.textStyle ?? themeData.textTheme.headline5!,
errorTextStyle: decoration.errorTextStyle ??
themeData.textTheme.caption!
.copyWith(color: themeData.errorColor),
hintTextStyle: decoration.hintTextStyle ??
themeData.textTheme.headline5!
.copyWith(color: themeData.hintColor),
);