In the automation process, you can use these two files.
Example in github actions:
# ... your before steps ...
- name: Run tests with coverage
run: flutter test --coverage
- name: Filter coverage
run: dart tool/coverage_filter.dart
- name: Check coverage threshold
run: dart tool/coverage_check.dart