textStyle method

TextStyle textStyle(
  1. bool isSelected,
  2. bool disabled
)

Implementation

TextStyle textStyle(bool isSelected, bool disabled) {
  if (isSelected) {
    return widget.buttonTextStyle.selectedTextStyle.copyWith(
      color: disabled
          ? widget.buttonTextStyle.disabledColor
          : widget.buttonTextStyle.selectedColor,
    );
  }
  return widget.buttonTextStyle.textStyle.copyWith(
    color: disabled
        ? widget.buttonTextStyle.disabledColor
        : widget.buttonTextStyle.unSelectedColor,
  );
}