buildButtonLabel method

FastButtonLabel buildButtonLabel(
  1. Color textColor, {
  2. Color? disabledTextColor,
  3. bool upperCase = true,
  4. double? fontSize,
})

Implementation

FastButtonLabel buildButtonLabel(
  Color textColor, {
  Color? disabledTextColor,
  bool upperCase = true,
  double? fontSize,
}) {
  return FastButtonLabel(
    text: widget.text ?? kFastButtonLabel,
    textColor: widget.isEnabled
        ? textColor
        : disabledTextColor ?? textColor.withAlpha(kDisabledAlpha),
    upperCase: upperCase,
    fontSize: fontSize,
  );
}