maybeOf static method

double? maybeOf(
  1. BuildContext context
)

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;