ArrowListType constructor

ArrowListType(
  1. ArrowField field, {
  2. ArrowOffsetWidth offsetWidth = ArrowOffsetWidth.normal,
  3. bool view = false,
})

Variable-length list. offsetWidth selects List (normal) or LargeList (large); view selects the ListView layouts.

Implementation

ArrowListType(
  this.field, {
  this.offsetWidth = ArrowOffsetWidth.normal,
  this.view = false,
}) {
  if (offsetWidth == ArrowOffsetWidth.view) {
    throw ArgumentError.value(
      offsetWidth,
      'offsetWidth',
      'use view: true for list views',
    );
  }
}