spacingOf method

(double?, double?) spacingOf(
  1. Size box
)

The room between two copies along each space axis the box holds two copies or more on, as many whole copies as the room holds and the room left over over the gaps between them, in 1/64 px with the remainder dropped; null on any other axis.

Implementation

(double?, double?) spacingOf(Size box) {
  final t = tileOf(box);
  return _spacing(box, t.width, t.height);
}