TTableCellScope constructor

TTableCellScope({
  1. Key? key,
  2. required ValueNotifier<String?> activeCellNotifier,
  3. String? cellErrorBuilder(
    1. dynamic data,
    2. String column
    )?,
  4. Map<String, String>? cellErrors,
  5. ValueListenable<Map<String, String>>? errorsNotifier,
  6. required Widget child,
})

Creates a cell scope.

activeCellNotifier is the shared ValueNotifier<String?> owned by the table state. Pass null when the table is not editable; maybeOf will then return null and all cells will render in read-only mode.

Implementation

TTableCellScope({
  super.key,
  required this.activeCellNotifier,
  this.cellErrorBuilder,
  this.cellErrors,
  this.errorsNotifier,
  required super.child,
}) : super(
        notifier: errorsNotifier != null
            ? Listenable.merge([activeCellNotifier, errorsNotifier])
            : activeCellNotifier,
      );