Take the 2-minute tour ×

How can I find the OS's architecture using Dart on the server side?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

You can use the Platform class:

import 'dart:io';

main() {

If the Platform class is not enough, you could also create a new process and execute some command to see if it returns something meaningful (like execute ps to retrieve processes, etc.).

share|improve this answer
add comment

Your Answer


