EdgeInsets.only constructor Null safety

const EdgeInsets.only(
  1. {double left = 0.0,
  2. double top = 0.0,
  3. double right = 0.0,
  4. double bottom = 0.0}
)

Creates insets with only the given values non-zero.

Left margin indent of 40 pixels:
const EdgeInsets.only(left: 40.0)

Implementation

const EdgeInsets.only({
  this.left = 0.0,
  this.top = 0.0,
  this.right = 0.0,
  this.bottom = 0.0,
});