void setScrollDirection([String direction = 'all', Element node])

Override scrolling behavior to all direction, one direction, or none.

Valid scroll directions:

  • 'all': scroll in any direction
  • 'x': scroll only in the 'x' direction
  • 'y': scroll only in the 'y' direction
  • 'none': disable scrolling for this node

Source

void setScrollDirection([String direction = 'all', Element node]) {
  jsElement.callMethod('setScrollDirection', [direction, node]);
}