state property Null safety

bool state

Implementation

bool get state {
  bool? _state = itemVisible ?? itemLocked ?? null;

  if (_state == null) throw Exception();

  return _state;
}