FButtonContentStyle.inherit constructor
FButtonContentStyle.inherit({
- required FTypography typography,
- required Color enabled,
- required Color disabled,
Creates a FButtonContentStyle that inherits its properties from the given enabled
and disabled
.
Implementation
FButtonContentStyle.inherit({
required FTypography typography,
required Color enabled,
required Color disabled,
}) : this(
enabledTextStyle: typography.base.copyWith(
color: enabled,
fontWeight: FontWeight.w500,
height: 1,
),
disabledTextStyle: typography.base.copyWith(
color: disabled,
fontWeight: FontWeight.w500,
height: 1,
),
enabledIconColor: enabled,
disabledIconColor: disabled,
);