style property

ButtonStyle get style

Gets overrideButtonStyle of LeanButton. If overrideButtonStyle == null : Gets a ButtonStyle with backgroundColor as primary color. if backgroundColor == null : Gets a ButtonStyle with AppThemeAccess.theme.primary as primary color.

Implementation

ButtonStyle get style {
  if (overrideButtonStyle != null) {
    return overrideButtonStyle as ButtonStyle;
  }
  return ElevatedButton.styleFrom(
      primary: backgroundColor ?? AppThemeAccess.theme.defaultButtonColor);
}