buildByCupertino method

  1. @override
Widget buildByCupertino(
  1. BuildContext context
)

build on cupertino mode (Flutter implementation)

Implementation

@override
Widget buildByCupertino(BuildContext context) {
  // Use CNPullDownButtonAnchor directly from cupertino_native
  if (buttonIcon != null) {
    return CNPullDownButtonAnchor.icon(
      buttonIcon: buttonIcon!,
      items: items,
      onSelected: onSelected,
      tint: tint,
      size: size,
      buttonStyle: buttonStyle,
      menuTitle: menuTitle,
      alignment: alignment,
    );
  } else {
    return CNPullDownButtonAnchor(
      buttonLabel: buttonLabel!,
      items: items,
      onSelected: onSelected,
      tint: tint,
      height: height,
      width: width,
      buttonStyle: buttonStyle,
      menuTitle: menuTitle,
      alignment: alignment,
    );
  }
}