literalValue property

  1. @override
List 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
List<dynamic> get literalValue => value.map((Constant e) => e.literalValue).toList();