initializer property

  1. @Deprecated('Use VariableElement.constantInitializer instead')
Expression? get initializer

The initializer for this constant variable fragment, or the default value for this formal parameter fragment.

Is null if this variable fragment is not a constant, or does not have the initializer or the default value specified.

Implementation

@Deprecated('Use VariableElement.constantInitializer instead')
Expression? get initializer;