initialize method

void initialize()
inherited

A public interface for object initialization.

Sets the state to Active, calls propose, and if it throws an Exception, calls deactivate.

Implementation

@pragma("vm:notify-debugger-on-exception")
void initialize() {
  setActive();
  try {
    propose();
  } on Exception {
    deactivate();
    rethrow;
  }
}