FButtonContentStyle.inherit constructor

FButtonContentStyle.inherit({
  1. required FTypography typography,
  2. required Color enabled,
  3. 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,
      );