Write working on platform with `dart:io`