TextCell<T> constructor
const
TextCell<T> ({
- Key? key,
- required T itemContent,
- String itemToString(
- T
- double? cellWidth,
- double? cellHeight,
- double? textSize,
- AlignmentGeometry? textAlignment = Alignment.center,
- Color? backgroundColor = Colors.white,
- Color? textColor = Colors.black,
- Color? borderColor = Colors.black12,
- bool isBold = false,
- bool isItalic = false,
- bool isUnderline = false,
- bool isAmount = false,
- CellNumberFormat numberFormatType = CellNumberFormat.international,
- RoundMode roundMode = RoundMode.withRoundUp,
- int roundTo = 0,
- void onTap(
- T
Implementation
const TextCell({
super.key,
required this.itemContent,
this.itemToString,
this.cellWidth,
this.cellHeight,
this.textSize,
this.textAlignment = Alignment.center,
this.backgroundColor = Colors.white,
this.textColor = Colors.black,
this.borderColor = Colors.black12,
this.isBold = false,
this.isItalic = false,
this.isUnderline = false,
// NEW
this.isAmount = false,
this.numberFormatType = CellNumberFormat.international,
this.roundMode = RoundMode.withRoundUp,
this.roundTo = 0,
this.onTap,
});