IDOffset.only constructor

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

Implementation

const IDOffset.only({
  this.left = 0.0,
  this.top = 0.0,
  this.right = 0.0,
  this.bottom = 0.0,
})  : assert(top >= 0.0 &&
          top <= 1.0 &&
          left >= 0.0 &&
          left <= 1.0 &&
          right >= 0.0 &&
          right <= 1.0 &&
          bottom >= 0.0 &&
          bottom <= 1.0),
      assert(top >= 0.0 && bottom == 0.0 || top == 0.0 && bottom >= 0.0);