activeOrOpacity static method
Implementation
static Widget activeOrOpacity({
required Widget child,
required bool active,
required bool anyActive,
Key? key,
double opacity = 0.4,
}) {
if (anyActive && !active) {
return RepaintBoundary(
child: Opacity(
opacity: opacity,
child: IgnorePointer(child: child),
),
);
} else if (active) {
return TScrollTop(key: key, child: child);
}
return child;
}