context property Null safety

BuildContext context

Implementation

static BuildContext get context {
  assert(RRouter.myRouter.observer.navigator != null,
      'please add the observer into app');
  return myRouter.observer.navigator!.context;
}