Is there a way to return several values in a function return statement (other than returning an object) like we can do in Go (or some other languages)?
For example,
Dart doesn't support multiple return values.
You can return an array,
List foo() { return [42, "foobar"]; }
or if you want the values be typed use a Tuple class like the package https://pub.dartlang.org/packages/tuple provides.
Tuple
See also either for a way to return a value or an error.