1dartpad is an online editor or compiler which does not support dart:io or any other libraries by dart.
2
3In simple, to use stdin or stdout use vscode or any editor with SDK.
4Since, dart pad does not support this package/library.
5
6sorry for any mistake, I am still a newbie and I found this info. on stackoverflow.