toggle method
Implementation
Future<OnyxMessage?> toggle() async {
if (active) {
return release();
} else {
return trigger();
}
}
Future<OnyxMessage?> toggle() async {
if (active) {
return release();
} else {
return trigger();
}
}