settleOrNot method
Implementation
Future<bool> settleOrNot([int timeout = 5]) async {
try {
await pumpAndSettle(const Duration(milliseconds: 500), EnginePhase.sendSemanticsUpdate, Duration(seconds: timeout));
return true;
} catch (e) {
return false;
}
}