onStart method
Start sensing for 10 seconds, whereafter it is stops automatically.
Implementation
@override
void onStart() {
super.onStart();
Timer(const Duration(seconds: 10), () => super.onDone());
}
Start sensing for 10 seconds, whereafter it is stops automatically.
@override
void onStart() {
super.onStart();
Timer(const Duration(seconds: 10), () => super.onDone());
}