hasBinding property

bool get hasBinding

Whether a binding exists already.

Implementation

static bool get hasBinding {
  try {
    WidgetsBinding.instance;
    return true;
  } catch (_) {
    return false;
  }
}