body method
Implementation
body({required Widget child, required BuildContext context}) {
var _activeColor = activeColor ?? Theme.of(context).colorScheme.secondary;
return ClipRRect(
borderRadius: BorderRadius.circular(border),
child: MaterialButton(
splashColor: (enableEffectClicked) ? null : Colors.transparent,
highlightColor: (enableEffectClicked) ? null : Colors.transparent,
disabledColor: disabledColor,
elevation: elevation,
color: _activeColor,
height: height,
minWidth: double.infinity / 2,
onPressed: onPressed,
padding:(builderText != null) ? EdgeInsets.zero:null,
child: (builderText != null) ? builderText!(text) : child,
),
);
}