of static method Null safety

PairingScrollControllerGroup? of(
  1. BuildContext context
)
override

Returns the ScrollController most closely associated with the given context.

If no ancestor is found, this method will assert in debug mode, and throw an exception in release mode.

Calling this method will create a dependency on the closest PrimaryScrollController in the context.

See also:

Implementation

static PairingScrollControllerGroup? of(BuildContext context) => context
    .dependOnInheritedWidgetOfExactType<PairingScrollController>()
    ?.group;