setSizedBottomRightBtn method
void
setSizedBottomRightBtn({})
Implementation
void setSizedBottomRightBtn(
{required double defaultSize,
required double oneSelectedSize,
required double multipleSelectedSize}) {
setState(() {
if (datesRange.start != null || selectedItems!.length > 0) {
bottomRightSizedWidth = oneSelectedSize;
}
if ((datesRange.start != null && datesRange.end != null) ||
selectedItems!.length > 1) {
bottomRightSizedWidth = multipleSelectedSize;
}
if ((datesRange.start == null && datesRange.end == null) ||
(selectedItems == null || selectedItems!.length < 1)) {
bottomRightSizedWidth = defaultSize;
}
});
}