Horizontal method

DeclarativeEdgeInsets Horizontal([
  1. double? padding
])

Adds padding to the horizontal sides of the child.

If padding is not provided, it defaults to the value of the side with the largest padding. If all sides are 0, it defaults to defaultPadding.

Implementation

// ignore: non_ant_identifier_names
DeclarativeEdgeInsets Horizontal([double? padding]) => copyWith(
      left: padding ?? _findMax(),
      right: padding ?? _findMax(),
    );