shouldFullyObstruct method

  1. @override
bool shouldFullyObstruct(
  1. BuildContext context
)
override

If true, this widget fully obstructs widgets behind it by the specified size.

If false, this widget partially obstructs.

Implementation

@override
bool shouldFullyObstruct(BuildContext context) {
  if (isCupertinoMode) {
    final Color backgroundColor =
        CupertinoDynamicColor.maybeResolve(this.backgroundColor, context) ??
            CupertinoTheme.of(context).barBackgroundColor;
    return backgroundColor.alpha == 0xFF;
  }
  return true;
}