finalHeight method
Determines the height of this app bar based on its height and the top padding from the system.
Implementation
@visibleForTesting
double finalHeight(BuildContext context) {
assert(debugCheckHasMediaQuery(context));
final topPadding = MediaQuery.paddingOf(context).top;
return height + topPadding;
}