get method

DataTransferItem? get(
  1. String mimeType
)

Retrieves the data transfer item for a given mime type.

@param mimeType The mime type to get the data transfer item for, such as text/plain or image/png. Mimes type look ups are case-insensitive.

Special mime types:

  • text/uri-list — A string with toString()ed Uris separated by \r\n. To specify a cursor position in the file, set the Uri's fragment to L3,5, where 3 is the line number and 5 is the column number.

Implementation

_i3.DataTransferItem? get(_i2.String mimeType) => _i5.callMethod(
      this,
      'get',
      [mimeType],
    );