* @returns True if an icon with the given type exists on the block, * false otherwise.
(type: IconType<IIcon>)
| 2433 | * false otherwise. |
| 2434 | */ |
| 2435 | hasIcon(type: IconType<IIcon>): boolean { |
| 2436 | return this.icons.some((icon) => icon.getType().equals(type)); |
| 2437 | } |
| 2438 | |
| 2439 | /** |
| 2440 | * @param type The type of the icon to retrieve. Prefer passing an `IconType` |
no test coverage detected