Dart: check context