Box.gap constructor

const Box.gap(
  1. double gap
)

Creates a square box with gap by gap pixels. This may be used for small gaps between widgets. For example:

Column(
  children: [
   Text('A'),
   const Box.gap(10),
   Text('B'),
  ],
);

Implementation

const Box.gap(double gap) : this(width: gap, height: gap);