documentOperationTags method Null safety

List<String> documentOperationTags(
  1. APIDocumentContext context,
  2. Operation? operation
)

Returns a list of tags for operation.

By default, this method will return the name of the class. This groups each operation defined by this controller in the same tag. You may override this method to provide additional tags. You should call the superclass' implementation to retain the controller grouping tag.

Implementation

List<String> documentOperationTags(
    APIDocumentContext context, Operation? operation) {
  final tag = "$runtimeType".replaceAll("Controller", "");
  return [tag];
}