getToolResultPath method

String getToolResultPath(
  1. String id, {
  2. required bool isJson,
})

Get the filepath where a tool result would be persisted.

Implementation

String getToolResultPath(String id, {required bool isJson}) {
  final ext = isJson ? 'json' : 'txt';
  return '${getToolResultsDir()}/$id.$ext';
}