FunctionElementImpl constructor

FunctionElementImpl({
  1. required String name,
  2. bool isAbstract = false,
  3. bool isAsynchronous = false,
  4. bool isExternal = false,
  5. bool isGenerator = false,
  6. bool isOperator = false,
  7. bool isStatic = false,
  8. bool isSynchronous = false,
  9. required Element enclosingElement,
})

Creates a function element with the specified properties.

@param name The name of the function @param isAbstract Whether the function is abstract @param isAsynchronous Whether the function is asynchronous @param isExternal Whether the function is external @param isGenerator Whether the function is a generator @param isOperator Whether the function is an operator @param isStatic Whether the function is static @param isSynchronous Whether the function is synchronous @param enclosingElement The element containing this function

Implementation

FunctionElementImpl({
  required super.name,
  super.isAbstract = false,
  super.isAsynchronous = false,
  super.isExternal = false,
  super.isGenerator = false,
  super.isOperator = false,
  super.isStatic = false,
  super.isSynchronous = false,
  required super.enclosingElement,
});