setParams method

void setParams(
  1. BottomButtonParams secondaryButtonParams
)

A method to set the button parameters. The params parameter is an object containing one or several fields that need to be changed: text - button text; color - button color; text_color - button text color; is_active - enable the button; is_visible - show the button.

Implementation

void setParams(BottomButtonParams secondaryButtonParams) => _jsObject.setParams(
      BottomButtonParamsJSObject(
        text: secondaryButtonParams.text,
        color: secondaryButtonParams.color,
        textColor: secondaryButtonParams.textColor,
        hasShineEffect: secondaryButtonParams.hasShineEffect,
        position: secondaryButtonParams.position,
        isVisible: secondaryButtonParams.isVisible,
        isActive: secondaryButtonParams.isActive,
      ),
    );