listener method

  1. @override
void listener(
  1. Object? value
)
override

Implementation

@override
void listener(Object? value) {
  if (value == null) {
    reload();
  } else if (value is MessageHubMessage) {
    messageHub.inbound.sink.add(value.value);
  } else if (value is bool) {
    close(force: value);
  } else {
    logger?.warning('$isolateName received unsupported message: $value');
  }
}