GridModel constructor

GridModel(
  1. WidgetModel parent,
  2. String? id, {
  3. dynamic width,
  4. dynamic height,
  5. dynamic direction,
  6. dynamic scrollShadows,
  7. dynamic scrollButtons,
  8. dynamic onpulldown,
  9. dynamic draggable,
})

Implementation

GridModel(WidgetModel parent, String? id, {dynamic width, dynamic height, dynamic direction, dynamic scrollShadows, dynamic scrollButtons, dynamic onpulldown, dynamic draggable}) : super(parent, id)
{
  // instantiate busy observable
  busy = false;

  if (width  != null) this.width  = width;
  if (height != null) this.height = height;

  this.draggable = draggable;
  this.onpulldown    = onpulldown;
  this.direction = direction;
  this.scrollShadows = scrollShadows;
  moreUp = false;
  moreDown = false;
  moreLeft = false;
  moreRight = false;
}