of static method

ParallaxData? of(
  1. BuildContext context
)

Utility method to obtain the current ParallaxData instance provided by InheritedWidget class

Implementation

static ParallaxData? of(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<ParallaxData>();
}