getPreviewTitle static method

String getPreviewTitle({
  1. required String toolId,
  2. required Map<String, String> titlesById,
})

Implementation

static String getPreviewTitle({
  required String toolId,
  required Map<String, String> titlesById,
}) {
  return titlesById[toolId] ?? '';
}