opaque method
- 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 CupertinoDynamicColor.resolve(backgroundColor, context).alpha == 0xFF;
}