Skip to content

Null Safety

Floor infers nullability of database columns directly from entity fields, as mentioned in the Entities section. When not explicitly making a field nullable by applying ? to its type, a column cannot hold NULL. For more information regarding nulls as query results, see the Queries and Streams section.