funRefer property

FunctionType get funRefer

Implementation

FunctionType get funRefer => FunctionType((b) => b
  ..returnType = returnType.refer
  ..requiredParameters.addAll(requiredParams.map((e) => e.type.refer))
  ..optionalParameters.addAll(optionalParams.map((e) => e.type.refer))
  ..isNullable = type.isNullable
  ..namedParameters.addAll(
    {}..addEntries(namedParams.map(
        (e) => MapEntry(e.name, e.type.refer),
      )),
  ));