Skip to content

Instantly share code, notes, and snippets.

@dander11
Created March 29, 2019 15:54
Show Gist options
  • Select an option

  • Save dander11/8887710a94c03e81ab05dcf7bdbe34da to your computer and use it in GitHub Desktop.

Select an option

Save dander11/8887710a94c03e81ab05dcf7bdbe34da to your computer and use it in GitHub Desktop.
class InheritedBlocs extends InheritedWidget {
InheritedBlocs(
{Key key,
this.searchBloc,
this.child})
: super(key: key, child: child);
final Widget child;
final SearchBloc searchBloc;
static InheritedBlocs of(BuildContext context) {
return (context.inheritFromWidgetOfExactType(InheritedBlocs)
as InheritedBlocs);
}
@override
bool updateShouldNotify(InheritedBlocs oldWidget) {
return true;
}
}
@pramod0
Copy link

pramod0 commented May 28, 2023

What is SearchBloc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment