BoolSignalExtension#
Kind:
extension |
Package: package:signals_core
Extension: BoolSignalExtension#
extension BoolSignalExtension on ReadonlySignal<bool>
Helper extensions for ReadonlySignal
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
Members of BoolSignalExtension#
| Member | Type | Signature | Description |
|---|---|---|---|
| & | method |
dart bool &(bool other) |
The logical conjunction ("and") of this and other. |
| ** | ** | method |
dart bool |
| ^ | method |
dart bool ^(bool other) |
The logical exclusive disjunction ("exclusive or") of this and other. |
References#
The BoolSignalExtension type is referenced and used in the following pages: