Back to Flutter Boost

of method

doc/api/boost_container/BoostContainer/of.html

5.0.2352 B
Original Source

of method

BoostContainerof(

  1. BuildContext context

)

Implementation

static BoostContainer of(BuildContext context) {
  final state = context.findAncestorStateOfType<BoostContainerState>();
  return state.container;
}