FButtonCustomStyle.inherit constructor
FButtonCustomStyle.inherit({})
Creates a FButtonCustomStyle that inherits its properties from the given arguments.
Implementation
FButtonCustomStyle.inherit({
required FTypography typography,
required FStyle style,
required Color enabledBoxColor,
required Color enabledHoveredBoxColor,
required Color disabledBoxColor,
required Color enabledContentColor,
required Color disabledContentColor,
}) : this(
enabledBoxDecoration: BoxDecoration(
borderRadius: style.borderRadius,
color: enabledBoxColor,
),
enabledHoverBoxDecoration: BoxDecoration(
borderRadius: style.borderRadius,
color: enabledHoveredBoxColor,
),
disabledBoxDecoration: BoxDecoration(
borderRadius: style.borderRadius,
color: disabledBoxColor,
),
contentStyle: FButtonContentStyle.inherit(
typography: typography,
enabled: enabledContentColor,
disabled: disabledContentColor,
),
iconContentStyle: FButtonIconContentStyle(
enabledColor: enabledContentColor,
disabledColor: disabledContentColor,
),
);