ComputePropertyValueCallback<T> typedef Null safety

ComputePropertyValueCallback<T> = T? Function()

Signature for computing the value of a property.

May throw exception if accessing the property would throw an exception and callers must handle that case gracefully. For example, accessing a property may trigger an assert that layout constraints were violated.


typedef ComputePropertyValueCallback<T> = T? Function();