maybeOf static method
Returns the height of the app bar if it exists, otherwise returns null.
Example:
final appBarHeight = AppBarHeight.maybeOf(context);
Implementation
static double? maybeOf(BuildContext context) =>
Scaffold.maybeOf(context)?.appBarMaxHeight;