of static method
The published allowance, or 0 outside any shell and on a pushed route, where the bar has yielded.
Implementation
static double of(BuildContext context) =>
ModalRoute.of(context)?.isFirst == false
? 0
: context
.dependOnInheritedWidgetOfExactType<MinimalShellInsets>()
?.allowance ??
0.0;