Spacing.horizontal constructor

const Spacing.horizontal(
  1. double width, {
  2. Key? key,
})

Creates horizontal spacing with the specified width.

The width parameter defines the amount of horizontal space in logical pixels.

Implementation

const Spacing.horizontal(double width, {super.key})
    : _width = width,
      _height = null;