TTLink constructor

TTLink({
  1. required String key,
  2. required TTClient client,
  3. TTLink? parent,
})

Implementation

TTLink({required this.key, required TTClient client, TTLink? parent}) {
  if (isNull(parent)) {
    soul = key;
  }
  _opt = TTLinkOptions();
  _client = client;
  _parent = parent;
  _hasReceived = false;
  _updateEvent =
      TTEvent<TTValue?, String, dynamic>(name: getPath().join('|'));
}