isSupportedFileScheme method
Returns whether uri
is a file-like URI scheme that is supported by the
client.
Returning true
here does not guarantee that the client supports URIs,
the caller should also check clientSupportsUri.
Implementation
bool isSupportedFileScheme(Uri uri) {
return uri.isScheme('file') ||
// Handle all file-like schemes that end '+file' like
// 'dart-macro+file://'.
(clientSupportsUri && uri.scheme.endsWith('+file'));
}