ChatSource.from constructor

ChatSource.from(
  1. String? client
)

Implementation

ChatSource.from(String? client) {
  if ((client ?? '').isEmpty) return;
  final via = client!.split('/');
  if (client.length < 2) return;
  client = via[0];
  version = via[1];
}