Panel constructor

Panel(
  1. Rect _bounds, {
  2. Color? background,
  3. int padding = 0,
})

Implementation

Panel(this._bounds, {this.background, int padding = 0})
    : _padding = padding,
      _contentBounds = _bounds.shrink(padding);