getButtons method
Implementation
List<Widget> getButtons(double width) {
if ((right != null) && (style == Style.flexible)) {
rightButtonWidget = Flexible(
child: Container(
constraints: BoxConstraints(minWidth: width),
child: right,
),
);
} else {
rightButtonWidget = right;
}
List<Widget> buttons = [left, button, rightButtonWidget]
.where((widget) => widget != null)
.cast<Widget>()
.toList();
return buttons;
}