onStart method

  1. @override
void onStart()
override

Start sensing for 10 seconds, whereafter it is stops automatically.

Implementation

@override
void onStart() {
  super.onStart();
  Timer(const Duration(seconds: 10), () => super.onDone());
}