sizedBox function

dynamic sizedBox(
  1. bool firstButton,
  2. bool lastButton, {
  3. double width = 8.0,
})

SizedBox widget according to condition

Implementation

sizedBox(bool firstButton, bool lastButton, {double width = 8.0}) {
  return SizedBox(width: firstButton && lastButton ? width : 0.0);
}