EditableTable constructor
const
EditableTable({
- Key? key,
- Map<
String, dynamic> ? data, - TableEntity? entity,
- EdgeInsetsGeometry? tablePadding,
- Border? headerBorder,
- TextStyle? headerTextStyle,
- EdgeInsetsGeometry? headerContentPadding,
- Color? headerBackgroundColor,
- Border? rowBorder,
- EdgeInsetsGeometry? cellContentPadding,
- TextStyle? cellTextStyle,
- TextStyle? cellHintTextStyle,
- EdgeInsetsGeometry? cellInputDecorationContentPadding,
- InputBorder? cellInputDecorationBorder,
- InputBorder? cellInputDecorationFocusBorder,
- Widget? removeRowIcon,
- EdgeInsetsGeometry? removeRowIconPadding,
- Alignment? removeRowIconAlignment,
- Color? removeRowIconContainerBackgroundColor,
- bool showAddRow = true,
- Widget? addRowIcon,
- EdgeInsetsGeometry? addRowIconPadding,
- Alignment? addRowIconAlignment,
- Color? addRowIconContainerBackgroundColor,
- AutovalidateMode? formFieldAutoValidateMode,
- bool readOnly = false,
- ValueChanged<
RowEntity> ? onRowRemoved, - VoidCallback? onRowAdded,
- TableFiledFilled? onFilling,
- TableFiledFilled? onSubmitted,
Implementation
const EditableTable({
Key? key,
this.data,
this.entity,
this.tablePadding,
this.captionBorder,
this.captionPadding,
this.captionTextStyle,
this.captionHintTextStyle,
this.captionInputDecorationContentPadding,
this.captionTextFieldBorder,
this.captionTextFieldFocusBorder,
this.headerBorder,
this.headerTextStyle,
this.headerContentPadding,
this.headerBackgroundColor,
this.rowBorder,
this.cellContentPadding,
this.cellTextStyle,
this.cellHintTextStyle,
this.cellInputDecorationContentPadding,
this.cellInputDecorationBorder,
this.cellInputDecorationFocusBorder,
this.removeRowIcon,
this.removeRowIconPadding,
this.removeRowIconAlignment,
this.removeRowIconContainerBackgroundColor,
this.showAddRow = true,
this.addRowIcon,
this.addRowIconPadding,
this.addRowIconAlignment,
this.addRowIconContainerBackgroundColor,
this.footerBorder,
this.footerPadding,
this.footerTextStyle,
this.footerHintTextStyle,
this.footerInputDecorationContentPadding,
this.footerInputDecorationBorder,
this.footerInputDecorationFocusBorder,
this.formFieldAutoValidateMode,
this.readOnly = false,
this.onRowRemoved,
this.onRowAdded,
this.onFilling,
this.onSubmitted,
}) : assert(data != null || entity != null,
'data and entity cannot both be null'),
super(key: key);