FreedomTableHeaderCell constructor

FreedomTableHeaderCell({
  1. int? flex,
  2. double? fixedWidth,
  3. required Widget child,
  4. bool isFixedColumn = false,
})

Implementation

FreedomTableHeaderCell({
  this.flex,
  this.fixedWidth,
  required this.child,
  this.isFixedColumn = false,
}) {
  if (fixedWidth != null) {
    widthType = CellWidthType.fixed;
  } else {
    widthType = CellWidthType.flex;
    flex ??= 1;
  }
}