literalValue property

  1. @override
DartType? get literalValue
override

The literal Dart value represented by this constant.

This provides access to the underlying Dart value when possible. For complex types like objects, this may return null.

Implementation

@override
DartType? get literalValue => value;