drift icon indicating copy to clipboard operation
drift copied to clipboard

Confusion in tables docs

Open dickermoshe opened this issue 7 months ago • 1 comments

Discussed in https://github.com/simolus3/drift/discussions/3565

Originally posted by MaxLap May 19, 2025 In the https://drift.simonbinder.eu/dart_api/tables docs pages, I cannot find the distinction between the following ways of declaring columns, which both appear in that page:

TextColumn get title => text()();
late final name = text()()

There is even late final Column<int> age = integer().check(age.isBiggerOrEqualValue(0))(); at one place.

Is this a old way vs new way that wasn't updated everywhere? Is there an actual distinction? I would suggest making that clearer in the docs. Thanks!

dickermoshe avatar May 19 '25 13:05 dickermoshe

+1, just stumbled into this and had to look here on GitHub.

Discussion https://github.com/simolus3/drift/discussions/3691 is also related.

3elDU avatar Nov 16 '25 17:11 3elDU