of static method

Implementation

static OverlayManager of(BuildContext context) {
  var manager = Data.maybeOf<OverlayManager>(context);
  assert(manager != null, 'No OverlayManager found in context');
  return manager!;
}