FOtpFieldStyle.inherit constructor

FOtpFieldStyle.inherit({
  1. required FColors colors,
  2. required FTypography typography,
  3. required FStyle style,
  4. required bool touch,
})

Creates a FOtpFieldStyle that inherits its properties.

Implementation

new 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,
    );