TextFieldCell constructor

TextFieldCell({
  1. Key? key,
  2. TextEditingController? controller,
  3. String initialValue = '',
  4. ValueChanged<String>? onChanged,
  5. double? cellWidth,
  6. double? cellHeight,
  7. double? textSize,
  8. AlignmentGeometry? textAlignment = Alignment.center,
  9. Color? backgroundColor = Colors.white,
  10. Color? textColor = Colors.black,
  11. Color? borderColor = Colors.black12,
  12. bool isBold = false,
  13. InputDecoration? decoration,
})

Implementation

TextFieldCell({
  super.key,
  TextEditingController? controller,
  String initialValue = '',
  this.onChanged,
  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.decoration,
}) : controller = controller ?? TextEditingController(text: initialValue);