PasswordPaint constructor

PasswordPaint({
  1. required String text,
  2. required int passwordLength,
  3. required PasswordDecoration decoration,
  4. PasswordEntryType type = PasswordEntryType.boxTight,
  5. 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),
      );