IShellItem.from constructor

IShellItem.from(
  1. IUnknown interface
)

Creates a new instance of IShellItem from an existing interface.

This factory constructor calls the queryInterface method to obtain a reference to the IShellItem interface.

Throws a WindowsException if the queryInterface call fails.

Implementation

@pragma('vm:prefer-inline')
factory IShellItem.from(IUnknown interface) => interface.queryInterface();