FFormFieldErrorStyle.inherit constructor
FFormFieldErrorStyle.inherit({
- required Color errorColor,
- required Color labelColor,
- required Color descriptionColor,
- 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();