of static method

FairApp? of(
  1. BuildContext? context, {
  2. bool rebuild = false,
})

Implementation

static FairApp? of(BuildContext? context, {bool rebuild = false}) {
  return rebuild ? context?.dependOnInheritedWidgetOfExactType<FairApp>() : context?.findAncestorWidgetOfExactType<FairApp>();
}