ReorderableListView constructor

ReorderableListView({Widget header, @required List<Widget> children, @required ReorderCallback onReorder, Axis scrollDirection: Axis.vertical, EdgeInsets padding })

Creates a reorderable list.

Implementation

ReorderableListView({
  this.header,
  @required this.children,
  @required this.onReorder,
  this.scrollDirection = Axis.vertical,
  this.padding,
}): assert(scrollDirection != null),
    assert(onReorder != null),
    assert(children != null),
    assert(
      children.every((Widget w) => w.key != null),
      'All children of this widget must have a key.',
    );