setSizedBottomRightBtn method

void setSizedBottomRightBtn({
  1. required double defaultSize,
  2. required double oneSelectedSize,
  3. required double multipleSelectedSize,
})

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;
    }
  });
}