debugState property

CrudTableDataModel<T> get debugState
inherited

A development-only way to access state outside of StateNotifier.

The only difference with state is that debugState is not "protected".
Will not work in release mode.

This is useful for tests.

Implementation

T get debugState {
  late T result;
  assert(() {
    result = _state;
    return true;
  }(), '');
  return result;
}