ScrollView constructor

const ScrollView({
  1. Key? id,
  2. required ScrollViewState state,
  3. required Widget child,
  4. required int contentHeight,
  5. int? contentWidth,
  6. bool horizontal = false,
  7. bool showScrollbar = true,
  8. Style? scrollbarStyle,
  9. Style? scrollbarThumbStyle,
})

Implementation

const ScrollView({
  Key? id,
  required this.state,
  required this.child,
  required this.contentHeight,
  int? contentWidth,
  this.horizontal = false,
  this.showScrollbar = true,
  this.scrollbarStyle,
  this.scrollbarThumbStyle,
})  : _id = id,
      contentWidth = contentWidth ?? 0;