ThrioBuildContext extension

on

Methods

shouldCanPop(Widget trueWidget, {Widget falseWidget = const SizedBox(), void shoulCanPopResult(bool)?}) Widget
Use shouldCanPop to determine whether to display the back arrow.
stateOf<T extends State<StatefulWidget>>() → T
Get widget state by ancestorStateOfType method.
tryStateOf<T extends State<StatefulWidget>>() → T?
Get widget state by ancestorStateOfType method.