FOtpFieldStyle.inherit constructor
FOtpFieldStyle.inherit({
- required FColors colors,
- required FTypography typography,
- required FStyle style,
- required bool touch,
Creates a FOtpFieldStyle that inherits its properties.
Implementation
FOtpFieldStyle.inherit({
required FColors colors,
required FTypography typography,
required FStyle style,
required bool touch,
}) : this(
keyboardAppearance: colors.brightness,
cursorColor: colors.primary,
itemSize: touch ? const Size(44, 44) : const Size(36, 36),
itemStyles: .inherit(colors: colors, typography: typography, style: style),
dividerPadding: const .symmetric(horizontal: 4),
dividerColor: FVariants(
colors.foreground,
variants: {
[.disabled]: colors.disable(colors.foreground),
},
),
labelTextStyle: style.formFieldStyle.labelTextStyle,
descriptionTextStyle: style.formFieldStyle.descriptionTextStyle,
errorTextStyle: style.formFieldStyle.errorTextStyle,
childPadding: const .symmetric(vertical: 2),
);