ImageMargins constructor

const ImageMargins({
  1. int top = 0,
  2. int right = 0,
  3. int bottom = 0,
  4. int left = 0,
})

Creates an instance of ImageMargins.

Implementation

const ImageMargins({
  this.top = 0,
  this.right = 0,
  this.bottom = 0,
  this.left = 0,
}) : assert(top >= 0 && right >= 0 && bottom >= 0 && left >= 0);