context property

BuildContext get context

The current context if available. To use this, pass a navigator key to InqvineServices.

inqvine.setNavigationKey(key)

Implementation

BuildContext get context {
  if (currentNavigatorKey == null || currentNavigatorKey?.currentState == null) {
    throw Exception('');
  }

  return currentNavigatorKey!.currentState!.context;
}