shouldFullyObstruct method Null safety

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) {
  final Color backgroundColor =
      Theme.of(context).appBarTheme.backgroundColor!;

  return backgroundColor.alpha == 0xFF;
}