FButtonContentStyle.inherit constructor

FButtonContentStyle.inherit({
  1. required FTypography typography,
  2. required Color enabled,
  3. required Color disabled,
})

Creates a FButtonContentStyle that inherits its properties.

Implementation

FButtonContentStyle.inherit({required FTypography typography, required Color enabled, required Color disabled})
  : this(
      textStyle: FWidgetStateMap({
        WidgetState.disabled: typography.base.copyWith(color: disabled, fontWeight: FontWeight.w500, height: 1),
        WidgetState.any: typography.base.copyWith(color: enabled, fontWeight: FontWeight.w500, height: 1),
      }),
      iconStyle: FWidgetStateMap({
        WidgetState.disabled: IconThemeData(color: disabled, size: 20),
        WidgetState.any: IconThemeData(color: enabled, size: 20),
      }),
    );