of static method

LevitScope? of(
  1. BuildContext context, {
  2. bool listen = false,
})

The nearest LevitScope from the widget tree.

Implementation

static LevitScope? of(BuildContext context, {bool listen = false}) =>
    _ScopeProvider.of(context, listen: listen);