buildHeader method
Implementation
Widget? buildHeader() {
if (header != null) return header;
return Container(
alignment: Alignment.center,
padding: EdgeInsets.all(headerPadding),
decoration: ShapeDecoration(
color: headerColor,
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.only(
topLeft: Radius.circular(borderRadius),
topRight: Radius.circular(borderRadius)))),
child: headerIcon,
);
}