isActive property Null safety

bool isActive

Implementation

bool get isActive => _isActive.value;
void isActive=(bool value)

Implementation

set isActive(bool value) {
  if (_isActive.value != value) {
    _isActive.value = value;
    if (value) {
      onActivate();
    } else {
      onDeactivate();
    }
  }
}