ToolAnnotations constructor

ToolAnnotations({
  1. bool? destructiveHint,
  2. bool? idempotentHint,
  3. bool? openWorldHint,
  4. bool? readOnlyHint,
  5. String? title,
})

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,
});