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 allowDrag,
})

Implementation

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

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

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