opaque method

bool opaque (BuildContext context)

Indicates whether the tab bar is fully opaque or can have contents behind it show through it.

Implementation

bool opaque(BuildContext context) {
  final Color backgroundColor =
      this.backgroundColor ?? CupertinoTheme.of(context).barBackgroundColor;
  return backgroundColor.alpha == 0xFF;
}