toCell method

Converts this cell into a Flutter DataCell widget using the provided theme.

Implementation

DataCell toCell(AdeptDataTableCellTheme theme) {
  return DataCell(
    onTap: onTap,
    Container(
      color: theme.color,
      width: theme.width,
      padding: const EdgeInsets.symmetric(vertical: 5, horizontal: 10),
      alignment: Alignment.center,
      child: Text(text, style: theme.textStyle),
    ),
  );
}