Method constructor

Method({
  1. required VariableName name,
  2. TypeName returnType = TypeName.empty,
  3. Parameters parameters = Parameters.empty,
  4. bool isStatic = false,
  5. bool arrow = false,
  6. bool isAsync = false,
  7. Iterable<Code> content = const [],
})

Implementation

Method({
  required this.name,
  this.returnType = TypeName.empty,
  Parameters parameters = Parameters.empty,
  this.isStatic = false,
  bool arrow = false,
  bool isAsync = false,
  Iterable<Code> content = const [],
}) : super(
        arrow: arrow,
        isAsync: isAsync,
        parameters: parameters,
        content: content,
      );