operator > method
Writes to file. Platform independent. e.g.
$("echo 1") > File("./temp");
Will write "1" to file "temp". Which is equivlent to
$("echo 1 > ./temp")();
on MacOs and Linux. But the above will write "1 " to "temp" on windows.
Implementation
@override
void operator >(io.File file) {
file.writeAsBytesSync(stdout, mode: io.FileMode.writeOnly, flush: true);
}