DragableGridView<T> constructor Null safety

DragableGridView<T>(
  1. List<T> dataList,
  2. {Key? key,
  3. Axis scrollDirection = Axis.vertical,
  4. int crossAxisCount = 3,
  5. double childAspectRatio = 1.0,
  6. DragCompletion? dragCompletion,
  7. required DataWidgetBuilder<T> itemBuilder,
  8. required CanAccept canAccept}
)

Implementation

DragableGridView(
  this.dataList, {
  Key? key,
  this.scrollDirection = Axis.vertical,
  this.crossAxisCount = 3,
  this.childAspectRatio = 1.0,
  this.dragCompletion,
  required this.itemBuilder,
  required this.canAccept,
})  : assert(itemBuilder != null),
      assert(canAccept != null),
      assert(dataList != null && dataList.length >= 0),
      super(key: key);