isDestructive static method

bool isDestructive(
  1. Map<String, dynamic>? annotations
)

Check if a tool is destructive

Implementation

static bool isDestructive(Map<String, dynamic>? annotations) {
  return annotations?[ToolAnnotationKeys.destructive] == true;
}