getCloseButton method

Widget getCloseButton(
  1. double statusBarHeight
)

Make this method accessible to subclasses by removing the underscore

Implementation

Widget getCloseButton(double statusBarHeight) {
  return widget.closeIcon != null
      ? Positioned(
    top: statusBarHeight,
    left: widget.inverse ? null : 0,
    right: widget.inverse ? 0 : null,
    child: IconButton(
      icon: widget.closeIcon!,
      onPressed: () {
        closeSideMenu();
        // if  (widget.onClosedIcon != null) widget.onClosedIcon!();
      },
    ),
  )
      : Container();
}