MethodElementImpl constructor

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

Creates a method element with the specified properties.

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

Implementation

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