ToolAnnotations constructor
ToolAnnotations({})
Implementation
factory ToolAnnotations({
bool? destructiveHint,
bool? idempotentHint,
bool? openWorldHint,
bool? readOnlyHint,
String? title,
}) => ToolAnnotations.fromMap({
if (destructiveHint != null) Keys.destructiveHint: destructiveHint,
if (idempotentHint != null) Keys.idempotentHint: idempotentHint,
if (openWorldHint != null) Keys.openWorldHint: openWorldHint,
if (readOnlyHint != null) Keys.readOnlyHint: readOnlyHint,
if (title != null) Keys.title: title,
});