You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The operator overload is declared without providing the desired return type which defaults it to dynamic.
This emits an error when compiled with Dart 3.0 "The argument 'dynamic' can't be assigned to the parameter type 'SftpFileOpenMode.'" in the sample below:
final file =await sftp.open(remoteFilename, mode:SftpFileOpenMode.create |SftpFileOpenMode.write);
The way to solve that is to specify explictly the return type of the "|" operator to be SftpFileOpenMode as shown in the sample below:
Currently we have the declaration
The operator overload is declared without providing the desired return type which defaults it to
dynamic
.This emits an error when compiled with Dart 3.0 "The argument 'dynamic' can't be assigned to the parameter type 'SftpFileOpenMode.'" in the sample below:
The way to solve that is to specify explictly the return type of the "|" operator to be SftpFileOpenMode as shown in the sample below:
The text was updated successfully, but these errors were encountered: