literalValue property

  1. @override
Map 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
Map<dynamic, dynamic> get literalValue => value.map(
  (Constant k, Constant v) => MapEntry<dynamic, dynamic>(k.literalValue, v.literalValue),
);