Expression.callConstructor constructor

Expression.callConstructor(
  1. Type type, {
  2. String? name,
  3. ParameterValues? parameterValues,
  4. bool isConst = false,
})

Implementation

Expression.callConstructor(
  Type type, {
  String? name,
  ParameterValues? parameterValues,
  bool isConst = false,
}) : nodes = [
        if (isConst) KeyWord.const$,
        if (isConst) Space(),
        type,
        if (name != null) Code('.'),
        if (name != null) IdentifierStartingWithLowerCase(name),
        Code('('),
        if (parameterValues != null) parameterValues,
        Code(')'),
      ];