buildDataCell method

DataCell buildDataCell(
  1. dynamic value, {
  2. int flex = 1,
})

Implementation

DataCell buildDataCell(dynamic value, {int flex = 1}) {
  return DataCell(
    ConstrainedBox(
      constraints: BoxConstraints(maxWidth: flex * 130),
      child: Text(
        value?.toString() ?? '',
        style: const TextStyle(color: Colors.white),
        maxLines: 2,
        overflow: TextOverflow.visible,
      ),
    ),
  );
}