BoolSignalExtension extension
Helper extensions for ReadonlySignal<bool>, enabling direct reactive logical conjunction (&), disjunction (|), and exclusive or (^) operations.
import 'package:signals_core/signals_core.dart';
final a = true.$;
final b = false.$;
final andResult = a & b.value; // false
final orResult = a | b.value; // true
- on
Operators
-
operator &(
bool other) → bool -
Available on ReadonlySignal<
The logical conjunction ("and") of this andbool> , provided by the BoolSignalExtension extensionother. -
operator ^(
bool other) → bool -
Available on ReadonlySignal<
The logical exclusive disjunction ("exclusive or") of this andbool> , provided by the BoolSignalExtension extensionother. -
operator |(
bool other) → bool -
Available on ReadonlySignal<
The logical disjunction ("inclusive or") of this andbool> , provided by the BoolSignalExtension extensionother.