FFormFieldErrorStyle.inherit constructor

FFormFieldErrorStyle.inherit({
  1. required Color errorColor,
  2. required Color labelColor,
  3. required Color descriptionColor,
  4. required FTypography typography,
})

Creates a FFormFieldErrorStyle that inherits its properties from the given arguments.

Implementation

FFormFieldErrorStyle.inherit({
  required Color errorColor,
  required super.labelColor,
  required super.descriptionColor,
  required super.typography,
})  : errorTextStyle = typography.sm.copyWith(
        color: errorColor,
        fontWeight: FontWeight.w600,
      ),
      super.inherit();