isReadOnly static method

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

Check if a tool is read-only

Implementation

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