unreachable method Null safety

  1. @protected
void unreachable()

Convenience method to call from an unreachable operation on a state

Implementation

@protected
void unreachable() {
  assert(false);
}