isActiveOf static method
Whether a member operation is pending in the nearest group.
Returns false without a group. Registers a dependency, so context
rebuilds when this changes; use it to disable non-async widgets as well.
Implementation
static bool isActiveOf(BuildContext context) =>
context
.dependOnInheritedWidgetOfExactType<_AsyncButtonGroupScope>()
?.notifier
?._isActive ??
false;