init method

Initializes the state of the notifier. This method is called only once and as soon as the notifier is accessed the first time.

Implementation

@override
ServerState init() {
  return ServerState(
    running: false,
    clientConnected: false,
    sink: null,
  );
}