renderButton method

  1. @override
Object? renderButton()
override

Implementation

@override
Object? renderButton() {
  if (disabled) {
    content!.style.opacity = '0.7';
  } else {
    content!.style.opacity = '';
  }

  if (fontSize != null && fontSize!.isNotEmpty) {
    return $span(style: 'font-size: $fontSize', content: _buttonContent);
  } else {
    return _buttonContent;
  }
}