toggle method
Implementation
void toggle([String? display]) {
element?.style.display =
element?.style.display == 'none' ? display ?? 'block' : 'none';
}
void toggle([String? display]) {
element?.style.display =
element?.style.display == 'none' ? display ?? 'block' : 'none';
}