ExpandableTable constructor

const ExpandableTable({
  1. Key? key,
  2. ExpandableTableCell? firstHeaderCell,
  3. List<ExpandableTableHeader>? headers,
  4. List<ExpandableTableRow>? rows,
  5. ExpandableTableController? controller,
  6. double headerHeight = 188,
  7. double firstColumnWidth = 200,
  8. double defaultsColumnWidth = 120,
  9. double defaultsRowHeight = 50,
  10. Duration duration = const Duration(milliseconds: 500),
  11. Curve curve = Curves.fastOutSlowIn,
  12. Duration scrollShadowDuration = const Duration(milliseconds: 500),
  13. Curve scrollShadowCurve = Curves.fastOutSlowIn,
  14. Color scrollShadowColor = Colors.transparent,
  15. double scrollShadowSize = 10,
  16. bool visibleScrollbar = false,
})

ExpandableTable class constructor. Required:

     return ExpandableTable(
      firstHeaderCell: ExpandableTableCell(
        child: Text('Simple\nTable'),
      ),
      headers: headers,
      rows: rows,
    );

Implementation

const ExpandableTable({
  Key? key,
  this.firstHeaderCell,
  this.headers,
  this.rows,
  this.controller,
  this.headerHeight = 188,
  this.firstColumnWidth = 200,
  this.defaultsColumnWidth = 120,
  this.defaultsRowHeight = 50,
  this.duration = const Duration(milliseconds: 500),
  this.curve = Curves.fastOutSlowIn,
  this.scrollShadowDuration = const Duration(milliseconds: 500),
  this.scrollShadowCurve = Curves.fastOutSlowIn,
  this.scrollShadowColor = Colors.transparent,
  this.scrollShadowSize = 10,
  this.visibleScrollbar = false,
})  : assert((firstHeaderCell != null && rows != null && headers != null) ||
          controller != null),
      super(key: key);