isReadOnly property
bool
get
isReadOnly
True when storage metadata allows neither insert nor update writes.
Generated fields are always storage-read-only. A field that participates in only one write phase, such as insert-only or update-only, is not reported as fully read-only by this getter.
Implementation
bool get isReadOnly => generated || (!insertable && !updateable);