settleOrNot method

Future<bool> settleOrNot([
  1. int timeout = 5
])

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;
  }
}