hasInitialValue property

bool hasInitialValue
final

Whether the field is declared with an initializer that is a constant the generator could write into the description, so initialValue is meaningful (bool inStock = true).

It is false for a field without an initializer, for a getter, and for an initializer that is not a constant: DateTime.now(), a non-const list ([]), a call, a reference to a non-const variable. Written by the generator; false in hand-written introspections.

Implementation

final bool hasInitialValue;