textStyle method
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,
);
}