ConstObjectImpl constructor

ConstObjectImpl(
  1. Map<String, Constant?> props,
  2. DartType type, {
  3. Map<int, String> positionalNames = const <int, String>{},
  4. String? constructorName,
  5. List<Expression> constructorArguments = const <Expression>[],
})

Creates a new constant object with the given properties and type.

@param props The properties of the object @param type The type of the object @param positionalNames Mapping of positional parameter indices to names @param constructorName The name of the constructor used (null for default) @param constructorArguments The constructor arguments used

Implementation

ConstObjectImpl(
  this.props,
  this.type, {
  this.positionalNames = const <int, String>{},
  this.constructorName,
  this.constructorArguments = const <Expression>[],
});